diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2016-04-16 11:48:23 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2016-04-27 18:35:17 -0700 |
commit | 9fbb5c720eb89947720fa745aa08fa4fed7143b4 (patch) | |
tree | de0dbc67ce18b2dbb6b2960a90fccbb69b31ffb7 /components/servo/lib.rs | |
parent | 311dd0f930b9e8e90d08151f1956e2da25737d8a (diff) | |
download | servo-9fbb5c720eb89947720fa745aa08fa4fed7143b4.tar.gz servo-9fbb5c720eb89947720fa745aa08fa4fed7143b4.zip |
Add a method for dumping self-contained HTML timeline profiles
This commit adds the `--profiler-trace-path` flag. When combined with `-p` to
enable profiling, it dumps a profile as a self-contained HTML file to the given
path. The profile visualizes the traced operations as a gant-chart style
timeline.
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 47c66b97590..42e6706500c 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -116,7 +116,8 @@ impl Browser { let (compositor_proxy, compositor_receiver) = window.create_compositor_channel(); let supports_clipboard = window.supports_clipboard(); - let time_profiler_chan = profile_time::Profiler::create(opts.time_profiler_period); + let time_profiler_chan = profile_time::Profiler::create(opts.time_profiler_period, + opts.time_profiler_trace_path.clone()); let mem_profiler_chan = profile_mem::Profiler::create(opts.mem_profiler_period); let devtools_chan = opts.devtools_port.map(|port| { devtools::start_server(port) |