Passing ProfilerChan by reference to the send_profile_data method.

This commit is contained in:
Jeremy Lempereur 2017-06-17 14:33:54 +02:00
parent f740366c61
commit 60de05d77d
2 changed files with 3 additions and 3 deletions

View file

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

View file

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