mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
added infrastructure to handle interval and CSV time profiling alongside html-timeline-profiling
This commit is contained in:
parent
81246a7b61
commit
ca3084d241
9 changed files with 214 additions and 92 deletions
|
@ -11,3 +11,4 @@ doctest = false
|
|||
[dependencies]
|
||||
profile = {path = "../../../components/profile"}
|
||||
profile_traits = {path = "../../../components/profile_traits"}
|
||||
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
extern crate ipc_channel;
|
||||
extern crate profile;
|
||||
extern crate profile_traits;
|
||||
|
||||
|
|
|
@ -2,14 +2,16 @@
|
|||
* 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/. */
|
||||
|
||||
use ipc_channel::ipc;
|
||||
use profile::time;
|
||||
use profile_traits::time::ProfilerMsg;
|
||||
|
||||
#[test]
|
||||
fn time_profiler_smoke_test() {
|
||||
let chan = time::Profiler::create(None, None);
|
||||
let chan = time::Profiler::create(&None, None);
|
||||
assert!(true, "Can create the profiler thread");
|
||||
|
||||
chan.send(ProfilerMsg::Exit);
|
||||
let (ipcchan, ipcport) = ipc::channel().unwrap();
|
||||
chan.send(ProfilerMsg::Exit(ipcchan));
|
||||
assert!(true, "Can tell the profiler thread to exit");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue