mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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.
This commit is contained in:
parent
311dd0f930
commit
9fbb5c720e
17 changed files with 758 additions and 11 deletions
|
@ -7,6 +7,8 @@
|
|||
#![feature(iter_arith)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(plugins)]
|
||||
#![feature(custom_derive)]
|
||||
#![plugin(serde_macros)]
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
|
@ -22,6 +24,8 @@ extern crate log;
|
|||
extern crate profile_traits;
|
||||
#[cfg(target_os = "linux")]
|
||||
extern crate regex;
|
||||
extern crate serde;
|
||||
extern crate serde_json;
|
||||
#[cfg(target_os = "macos")]
|
||||
extern crate task_info;
|
||||
extern crate time as std_time;
|
||||
|
@ -32,3 +36,4 @@ mod heartbeats;
|
|||
#[allow(unsafe_code)]
|
||||
pub mod mem;
|
||||
pub mod time;
|
||||
pub mod trace_dump;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue