mirror of
https://github.com/servo/servo.git
synced 2025-08-19 12:25:33 +01:00
Print url of recorded PWM
This commit is contained in:
parent
ff70c4426d
commit
983084470f
10 changed files with 45 additions and 9 deletions
|
@ -18,5 +18,6 @@ metrics = {path = "../../../components/metrics"}
|
|||
msg = {path = "../../../components/msg"}
|
||||
net_traits = {path = "../../../components/net_traits"}
|
||||
profile_traits = {path = "../../../components/profile_traits"}
|
||||
servo_url = {path = "../../../components/url"}
|
||||
style = {path = "../../../components/style"}
|
||||
time = "0.1.12"
|
||||
|
|
|
@ -6,6 +6,7 @@ use ipc_channel::ipc;
|
|||
use metrics::{InteractiveMetrics, InteractiveFlag};
|
||||
use metrics::{ProfilerMetadataFactory, ProgressiveWebMetric};
|
||||
use profile_traits::time::{ProfilerChan, TimerMetadata};
|
||||
use servo_url::ServoUrl;
|
||||
use time;
|
||||
|
||||
struct DummyProfilerMetadataFactory {}
|
||||
|
@ -19,7 +20,10 @@ impl ProfilerMetadataFactory for DummyProfilerMetadataFactory {
|
|||
fn test_interactive() -> InteractiveMetrics {
|
||||
let (sender, _) = ipc::channel().unwrap();
|
||||
let profiler_chan = ProfilerChan(sender);
|
||||
let mut interactive = InteractiveMetrics::new(profiler_chan);
|
||||
let mut interactive = InteractiveMetrics::new(
|
||||
profiler_chan,
|
||||
ServoUrl::parse("about:blank").unwrap(),
|
||||
);
|
||||
|
||||
assert_eq!((&interactive).get_navigation_start(), None);
|
||||
assert_eq!(interactive.get_tti(), None);
|
||||
|
|
|
@ -12,6 +12,7 @@ extern crate metrics;
|
|||
extern crate msg;
|
||||
extern crate net_traits;
|
||||
extern crate profile_traits;
|
||||
extern crate servo_url;
|
||||
extern crate style;
|
||||
extern crate time;
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
|
|||
use msg::constellation_msg::TEST_PIPELINE_ID;
|
||||
use net_traits::image::base::PixelFormat;
|
||||
use profile_traits::time::{ProfilerChan, TimerMetadata};
|
||||
use servo_url::ServoUrl;
|
||||
use style::computed_values::image_rendering::T as ImageRendering;
|
||||
use time;
|
||||
|
||||
|
@ -32,6 +33,7 @@ fn test_paint_metrics_construction() {
|
|||
profiler_chan,
|
||||
layout_sender,
|
||||
script_sender,
|
||||
ServoUrl::parse("about:blank").unwrap(),
|
||||
);
|
||||
assert_eq!(
|
||||
(&paint_time_metrics).get_navigation_start(),
|
||||
|
@ -60,6 +62,7 @@ fn test_common(display_list: &DisplayList, epoch: Epoch) -> PaintTimeMetrics {
|
|||
profiler_chan,
|
||||
layout_sender,
|
||||
script_sender,
|
||||
ServoUrl::parse("about:blank").unwrap(),
|
||||
);
|
||||
let dummy_profiler_metadata_factory = DummyProfilerMetadataFactory {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue