mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Passing ProfilerChan by reference to the send_profile_data method.
This commit is contained in:
parent
f740366c61
commit
60de05d77d
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue