aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile/trace_dump.rs
diff options
context:
space:
mode:
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(),