mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
update fxprof_processed_profile
This commit is contained in:
parent
9feba5028d
commit
43db4f4242
3 changed files with 10 additions and 6 deletions
|
@ -1,9 +1,10 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use fxprof_processed_profile::{
|
||||
CategoryPairHandle, CounterHandle, CpuDelta, Frame, FrameFlags, FrameInfo, MarkerDynamicField,
|
||||
MarkerFieldFormat, MarkerLocation, MarkerSchema, MarkerSchemaField, ProcessHandle, Profile,
|
||||
ProfilerMarker, ReferenceTimestamp, SamplingInterval, StringHandle, Timestamp,
|
||||
CategoryHandle, CategoryPairHandle, CounterHandle, CpuDelta, Frame, FrameFlags, FrameInfo,
|
||||
MarkerDynamicField, MarkerFieldFormat, MarkerLocation, MarkerSchema, MarkerSchemaField,
|
||||
ProcessHandle, Profile, ProfilerMarker, ReferenceTimestamp, SamplingInterval, StringHandle,
|
||||
Timestamp,
|
||||
};
|
||||
use serde_json::json;
|
||||
|
||||
|
@ -129,6 +130,7 @@ pub fn to_firefox_profile<R: std::io::Read>(
|
|||
|
||||
profile.add_marker_with_stack(
|
||||
*thread_handle,
|
||||
CategoryHandle::OTHER,
|
||||
&callsite.name,
|
||||
marker,
|
||||
fxprof_processed_profile::MarkerTiming::Interval(
|
||||
|
@ -179,6 +181,7 @@ pub fn to_firefox_profile<R: std::io::Read>(
|
|||
|
||||
profile.add_marker_with_stack(
|
||||
*thread_handle,
|
||||
CategoryHandle::OTHER,
|
||||
&callsite.name,
|
||||
marker,
|
||||
fxprof_processed_profile::MarkerTiming::Instant(timestamp),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue