mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
DevTools: Replace camel case variable names (#32726)
* refactor: rename to snake case * refactor: more renaming * chore: format * chore: clean
This commit is contained in:
parent
b243457ccc
commit
2888193cfe
22 changed files with 363 additions and 323 deletions
|
@ -11,16 +11,18 @@ use crate::actor::{Actor, ActorMessageStatus, ActorRegistry};
|
|||
use crate::StreamId;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct TimelineMemoryReply {
|
||||
jsObjectSize: u64,
|
||||
jsStringSize: u64,
|
||||
jsOtherSize: u64,
|
||||
domSize: u64,
|
||||
styleSize: u64,
|
||||
otherSize: u64,
|
||||
totalSize: u64,
|
||||
jsMilliseconds: f64,
|
||||
nonJSMilliseconds: f64,
|
||||
js_object_size: u64,
|
||||
js_string_size: u64,
|
||||
js_other_size: u64,
|
||||
dom_size: u64,
|
||||
style_size: u64,
|
||||
other_size: u64,
|
||||
total_size: u64,
|
||||
js_milliseconds: f64,
|
||||
#[serde(rename = "nonJSMilliseconds")]
|
||||
non_js_milliseconds: f64,
|
||||
}
|
||||
|
||||
pub struct MemoryActor {
|
||||
|
@ -57,17 +59,16 @@ impl MemoryActor {
|
|||
}
|
||||
|
||||
pub fn measure(&self) -> TimelineMemoryReply {
|
||||
//TODO:
|
||||
TimelineMemoryReply {
|
||||
jsObjectSize: 1,
|
||||
jsStringSize: 1,
|
||||
jsOtherSize: 1,
|
||||
domSize: 1,
|
||||
styleSize: 1,
|
||||
otherSize: 1,
|
||||
totalSize: 1,
|
||||
jsMilliseconds: 1.1,
|
||||
nonJSMilliseconds: 1.1,
|
||||
js_object_size: 1,
|
||||
js_string_size: 1,
|
||||
js_other_size: 1,
|
||||
dom_size: 1,
|
||||
style_size: 1,
|
||||
other_size: 1,
|
||||
total_size: 1,
|
||||
js_milliseconds: 1.1,
|
||||
non_js_milliseconds: 1.1,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue