aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile/trace_dump.rs
diff options
context:
space:
mode:
authorAnshul Malik <malikanshul29@gmail.com>2018-09-09 16:03:35 +0530
committerAnshul Malik <malikanshul29@gmail.com>2018-09-09 20:08:00 +0530
commit72748de72170ab17f6614e8e5bf1a49a97d34299 (patch)
tree52cf38e6c7b4cf8f1901d4b06ed0f473099985fc /components/profile/trace_dump.rs
parent9c1c58a49873e6e9b015129527ee5b4d2e34e390 (diff)
downloadservo-72748de72170ab17f6614e8e5bf1a49a97d34299.tar.gz
servo-72748de72170ab17f6614e8e5bf1a49a97d34299.zip
format components/profile - #21373
Diffstat (limited to 'components/profile/trace_dump.rs')
-rw-r--r--components/profile/trace_dump.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/components/profile/trace_dump.rs b/components/profile/trace_dump.rs
index b0c8f9d7ef5..4654f4dfb57 100644
--- a/components/profile/trace_dump.rs
+++ b/components/profile/trace_dump.rs
@@ -38,7 +38,8 @@ impl TraceDump {
/// Create a new TraceDump and write the prologue of the HTML file out to
/// disk.
pub fn new<P>(trace_file_path: P) -> io::Result<TraceDump>
- where P: AsRef<path::Path>
+ where
+ P: AsRef<path::Path>,
{
let mut file = fs::File::create(trace_file_path)?;
write_prologue(&mut file)?;
@@ -46,10 +47,12 @@ impl TraceDump {
}
/// Write one trace to the trace dump file.
- pub fn write_one(&mut self,
- category: &(ProfilerCategory, Option<TimerMetadata>),
- time: (u64, u64),
- energy: (u64, u64)) {
+ pub fn write_one(
+ &mut self,
+ category: &(ProfilerCategory, Option<TimerMetadata>),
+ time: (u64, u64),
+ energy: (u64, u64),
+ ) {
let entry = TraceEntry {
category: category.0,
metadata: category.1.clone(),