aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling/latency_profile
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-06-21 15:20:19 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-06-21 15:20:19 -0700
commit9d393a5d3c1a2609c3aa44caa3879e590f659c21 (patch)
tree0be538bd0f97e36e79223f7d18bdf9d5c596a195 /tools/profiling/latency_profile
parent74ea91d55229a654d0987d2f39cddf8514926f14 (diff)
slightly fancier output
Diffstat (limited to 'tools/profiling/latency_profile')
-rwxr-xr-xtools/profiling/latency_profile/run_latency_profile.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/profiling/latency_profile/run_latency_profile.sh b/tools/profiling/latency_profile/run_latency_profile.sh
index 40c6fcb431..618db202dc 100755
--- a/tools/profiling/latency_profile/run_latency_profile.sh
+++ b/tools/profiling/latency_profile/run_latency_profile.sh
@@ -96,10 +96,11 @@ fi
make CONFIG=basicprof -j$CPUS qps_json_driver
mkdir -p reports
-echo '<html><head></head><body>' > reports/index.html
bins/basicprof/qps_json_driver --scenarios_json="$SCENARIOS_JSON_ARG"
-echo '<pre>' >> reports/index.html
+
+echo '<html><head></head><body>Latency profile for:<br/>' > reports/index.html
+echo "<p><pre>${SCENARIOS_JSON_ARG}</pre></p>" >> reports/index.html
+echo '<p><pre>' >> reports/index.html
$PYTHON tools/profiling/latency_profile/profile_analyzer.py \
--source=latency_trace.txt --fmt=simple >> reports/index.html
-echo '</pre>' >> reports/index.html
-echo '</body></html>' >> reports/index.html
+echo '</pre></p></body></html>' >> reports/index.html