profile: Integrate the time profiler with the macOS signpost

infrastructure.

With this change, if you supply the `-Z signpost` flag, Instruments.app
can display Servo events overlaid with callstack data. Even better, you
can get call stack profiling for individual Servo events (one layout,
one network request, one style recalculation, etc.)

This adds a dependency on the `signpost` crate. On unsupported OS's,
this crate is an no-op.
This commit is contained in:
Patrick Walton 2016-09-29 17:59:35 -07:00 committed by Keith Yeung
parent 8b26c3ead5
commit cb11d85150
7 changed files with 197 additions and 45 deletions

View file

@ -14,6 +14,8 @@
extern crate ipc_channel;
extern crate serde;
extern crate signpost;
extern crate util;
pub mod energy;
pub mod mem;