Auto merge of #19516 - ferjm:pwm.url, r=jdm

Print url of recorded PWM

This makes it a bit easier to compare results with other browsers.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19516)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-12-07 14:54:03 -06:00 committed by GitHub
commit c4482ebe77
10 changed files with 45 additions and 9 deletions

View file

@ -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"

View file

@ -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);

View file

@ -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;

View file

@ -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 {};