Skip to content

Commit

Permalink
Passing ProfilerChan by reference to the send_profile_data method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Lempereur committed Jun 25, 2017
1 parent f740366 commit 60de05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/layout_thread/lib.rs
Expand Up @@ -1253,7 +1253,7 @@ impl LayoutThread {
(self.layout_threads as u64);
time::send_profile_data(time::ProfilerCategory::LayoutTextShaping,
self.profiler_metadata(),
self.time_profiler_chan.clone(),
&self.time_profiler_chan,
0,
text_shaping_time,
0,
Expand Down
4 changes: 2 additions & 2 deletions components/profile_traits/time.rs
Expand Up @@ -128,7 +128,7 @@ pub fn profile<T, F>(category: ProfilerCategory,

send_profile_data(category,
meta,
profiler_chan,
&profiler_chan,
start_time,
end_time,
start_energy,
Expand All @@ -138,7 +138,7 @@ pub fn profile<T, F>(category: ProfilerCategory,

pub fn send_profile_data(category: ProfilerCategory,
meta: Option<TimerMetadata>,
profiler_chan: ProfilerChan,
profiler_chan: &ProfilerChan,
start_time: u64,
end_time: u64,
start_energy: u64,
Expand Down

0 comments on commit 60de05d

Please sign in to comment.