-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88b29cb
commit 8ee44e1
Showing
3 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub struct SelfProfile { | ||
pub category_data: Vec<Category>, | ||
// This field is intentionally private as for perf it should not be read. | ||
compilation_options: Options, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
pub struct Category { | ||
/// Category name, e.g. Parsing | ||
#[serde(rename = "category")] | ||
pub name: String, | ||
/// Duration of all queries executed, combined, in milliseconds | ||
pub time_ms: u64, | ||
/// Number of queries executed | ||
pub query_count: u64, | ||
/// Percentage of query hits that were cached | ||
pub query_hits: f32, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Clone)] | ||
struct Options { | ||
optimization_level: String, | ||
incremental: bool, | ||
} |