mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 19:45:05 +08:00
update fxprof_processed_profile
This commit is contained in:
parent
9feba5028d
commit
43db4f4242
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -2083,14 +2083,15 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fxprof-processed-profile"
|
name = "fxprof-processed-profile"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd"
|
checksum = "ce20bbb48248608ba4908b45fe36e17e40f56f8c6bb385ecf5d3c4a1e8b05a22"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.6.0",
|
"bitflags 2.6.0",
|
||||||
"debugid",
|
"debugid",
|
||||||
"fxhash",
|
"fxhash",
|
||||||
"serde",
|
"serde",
|
||||||
|
"serde_derive",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
color-spantrace = "0.2.1"
|
color-spantrace = "0.2.1"
|
||||||
fxprof-processed-profile = "0.6.0"
|
fxprof-processed-profile = "0.7.0"
|
||||||
serde = { version = "1.0.204", features = ["derive"] }
|
serde = { version = "1.0.204", features = ["derive"] }
|
||||||
serde_json = "1.0.120"
|
serde_json = "1.0.120"
|
||||||
tracing = "0.1.40"
|
tracing = "0.1.40"
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use fxprof_processed_profile::{
|
use fxprof_processed_profile::{
|
||||||
CategoryPairHandle, CounterHandle, CpuDelta, Frame, FrameFlags, FrameInfo, MarkerDynamicField,
|
CategoryHandle, CategoryPairHandle, CounterHandle, CpuDelta, Frame, FrameFlags, FrameInfo,
|
||||||
MarkerFieldFormat, MarkerLocation, MarkerSchema, MarkerSchemaField, ProcessHandle, Profile,
|
MarkerDynamicField, MarkerFieldFormat, MarkerLocation, MarkerSchema, MarkerSchemaField,
|
||||||
ProfilerMarker, ReferenceTimestamp, SamplingInterval, StringHandle, Timestamp,
|
ProcessHandle, Profile, ProfilerMarker, ReferenceTimestamp, SamplingInterval, StringHandle,
|
||||||
|
Timestamp,
|
||||||
};
|
};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
@ -129,6 +130,7 @@ pub fn to_firefox_profile<R: std::io::Read>(
|
|||||||
|
|
||||||
profile.add_marker_with_stack(
|
profile.add_marker_with_stack(
|
||||||
*thread_handle,
|
*thread_handle,
|
||||||
|
CategoryHandle::OTHER,
|
||||||
&callsite.name,
|
&callsite.name,
|
||||||
marker,
|
marker,
|
||||||
fxprof_processed_profile::MarkerTiming::Interval(
|
fxprof_processed_profile::MarkerTiming::Interval(
|
||||||
@ -179,6 +181,7 @@ pub fn to_firefox_profile<R: std::io::Read>(
|
|||||||
|
|
||||||
profile.add_marker_with_stack(
|
profile.add_marker_with_stack(
|
||||||
*thread_handle,
|
*thread_handle,
|
||||||
|
CategoryHandle::OTHER,
|
||||||
&callsite.name,
|
&callsite.name,
|
||||||
marker,
|
marker,
|
||||||
fxprof_processed_profile::MarkerTiming::Instant(timestamp),
|
fxprof_processed_profile::MarkerTiming::Instant(timestamp),
|
||||||
|
Loading…
Reference in New Issue
Block a user