Functions | Variables
run_microbenchmark Namespace Reference

Functions

def _bazel_build_benchmark (bm_name, cfg)
 
def collect_latency (bm_name, args)
 
def collect_perf (bm_name, args)
 
def collect_summary (bm_name, args)
 
def fnize (s)
 
def heading (name)
 
def link (txt, tgt)
 
def run_summary (bm_name, cfg, base_json_name)
 
def text (txt)
 

Variables

 argp = argparse.ArgumentParser(description='Collect data from microbenchmarks')
 
 args = argp.parse_args()
 
 choices
 
dictionary collectors
 
 default
 
 flamegraph_dir = os.path.join(os.path.expanduser('~'), 'FlameGraph')
 
 help
 
string index_html
 
 nargs
 
 type
 

Function Documentation

◆ _bazel_build_benchmark()

def run_microbenchmark._bazel_build_benchmark (   bm_name,
  cfg 
)
private
Build given benchmark with bazel

Definition at line 78 of file run_microbenchmark.py.

◆ collect_latency()

def run_microbenchmark.collect_latency (   bm_name,
  args 
)
generate latency profiles

Definition at line 87 of file run_microbenchmark.py.

◆ collect_perf()

def run_microbenchmark.collect_perf (   bm_name,
  args 
)
generate flamegraphs

Definition at line 142 of file run_microbenchmark.py.

◆ collect_summary()

def run_microbenchmark.collect_summary (   bm_name,
  args 
)

Definition at line 205 of file run_microbenchmark.py.

◆ fnize()

def run_microbenchmark.fnize (   s)

Definition at line 40 of file run_microbenchmark.py.

◆ heading()

def run_microbenchmark.heading (   name)

Definition at line 62 of file run_microbenchmark.py.

◆ link()

def run_microbenchmark.link (   txt,
  tgt 
)

Definition at line 67 of file run_microbenchmark.py.

◆ run_summary()

def run_microbenchmark.run_summary (   bm_name,
  cfg,
  base_json_name 
)

Definition at line 193 of file run_microbenchmark.py.

◆ text()

def run_microbenchmark.text (   txt)

Definition at line 73 of file run_microbenchmark.py.

Variable Documentation

◆ argp

run_microbenchmark.argp = argparse.ArgumentParser(description='Collect data from microbenchmarks')

Definition at line 244 of file run_microbenchmark.py.

◆ args

run_microbenchmark.args = argp.parse_args()

Definition at line 269 of file run_microbenchmark.py.

◆ choices

run_microbenchmark.choices

Definition at line 247 of file run_microbenchmark.py.

◆ collectors

dictionary run_microbenchmark.collectors
Initial value:
1 = {
2  'latency': collect_latency,
3  'perf': collect_perf,
4  'summary': collect_summary,
5 }

Definition at line 238 of file run_microbenchmark.py.

◆ default

run_microbenchmark.default

Definition at line 249 of file run_microbenchmark.py.

◆ flamegraph_dir

run_microbenchmark.flamegraph_dir = os.path.join(os.path.expanduser('~'), 'FlameGraph')

Definition at line 31 of file run_microbenchmark.py.

◆ help

run_microbenchmark.help

Definition at line 250 of file run_microbenchmark.py.

◆ index_html

string run_microbenchmark.index_html
Initial value:
1 = """
2 <html>
3 <head>
4 <title>Microbenchmark Results</title>
5 </head>
6 <body>
7 """

Definition at line 53 of file run_microbenchmark.py.

◆ nargs

run_microbenchmark.nargs

Definition at line 248 of file run_microbenchmark.py.

◆ type

run_microbenchmark.type

Definition at line 256 of file run_microbenchmark.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:43