repr 0.1
Reconstructable string representations and more
Loading...
Searching...
No Matches
tools.benchmark.Benchmark Class Reference
Inheritance diagram for tools.benchmark.Benchmark:
[legend]
Collaboration diagram for tools.benchmark.Benchmark:
[legend]

Classes

class  Schema
 
class  Settings
 

Public Member Functions

 clone_dependency (self, list[Schema.Git] dependencies)
 
 prepare (self, list[tuple[Path, Schema]] data)
 
 compile (self, list[tuple[Path, Schema]] data)
 

Public Attributes

 root_path
 

Static Public Attributes

str ingest = Sources / "benchmark" >> Name("profiles.toml") >> Toml
 
 total_time_query = jmespath.compile("traceEvents[?name=='ExecuteCompiler'].dur")
 
 expensive_classes
 
 expensive_functions
 
str pipeline = ingest >> Extension.validate >> prepare >> compile >> Extension.write
 

Protected Member Functions

 _search (self, trace, queries)
 
 _search_list (self, trace, query, reverse=True)
 
Path _expand_path (self, Path path, Optional[Path] parent=None)
 

Member Function Documentation

◆ _expand_path()

Path tools.benchmark.Benchmark._expand_path (   self,
Path  path,
Optional[Path]   parent = None 
)
protected

◆ _search()

tools.benchmark.Benchmark._search (   self,
  trace,
  queries 
)
protected

◆ _search_list()

tools.benchmark.Benchmark._search_list (   self,
  trace,
  query,
  reverse = True 
)
protected

◆ clone_dependency()

tools.benchmark.Benchmark.clone_dependency (   self,
list[Schema.Git dependencies 
)

◆ compile()

tools.benchmark.Benchmark.compile (   self,
list[tuple[Path, Schema]]  data 
)

◆ prepare()

tools.benchmark.Benchmark.prepare (   self,
list[tuple[Path, Schema]]  data 
)

Member Data Documentation

◆ expensive_classes

tools.benchmark.Benchmark.expensive_classes
static
Initial value:
= jmespath.compile(
"reverse(sort_by(traceEvents[?name=='ParseClass' && !starts_with(@.args.detail, 'std')], &dur)[])[:10]"
)

◆ expensive_functions

tools.benchmark.Benchmark.expensive_functions
static
Initial value:
= jmespath.compile(
"reverse(sort_by(traceEvents[?name=='InstantiateFunction' && !starts_with(@.args.detail, 'std')], &dur)[])[:10]"
)

◆ ingest

str tools.benchmark.Benchmark.ingest = Sources / "benchmark" >> Name("profiles.toml") >> Toml
static

◆ pipeline

str tools.benchmark.Benchmark.pipeline = ingest >> Extension.validate >> prepare >> compile >> Extension.write
static

◆ root_path

tools.benchmark.Benchmark.root_path

◆ total_time_query

tools.benchmark.Benchmark.total_time_query = jmespath.compile("traceEvents[?name=='ExecuteCompiler'].dur")
static

The documentation for this class was generated from the following file: