mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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.
22 lines
658 B
Rust
22 lines
658 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
//! This module contains APIs for the `profile` crate used generically in the
|
|
//! rest of Servo. These APIs are here instead of in `profile` so that these
|
|
//! modules won't have to depend on `profile`.
|
|
|
|
#![feature(box_syntax)]
|
|
#![feature(custom_derive, plugin)]
|
|
#![plugin(plugins, serde_macros)]
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
extern crate ipc_channel;
|
|
extern crate serde;
|
|
extern crate signpost;
|
|
extern crate util;
|
|
|
|
pub mod energy;
|
|
pub mod mem;
|
|
pub mod time;
|