From 8dd6c70c87ce948f606d579957478bf19e8979b0 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Tue, 17 Nov 2026 19:54:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(process):=20CPU/GPU=20=E5=8D=A0=E7=94=A8?= =?UTF-8?q?=E8=87=B3=E5=B0=91=E6=8C=89=201=20=E7=A7=92=E7=9A=84=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit processMemory.summarize 以前只要两次读取的间隔大于 0 就计算占用率。桌面端 打开内存面板时会紧挨着读两次进程表(打开时一次,插件名称读完后又一次), 相隔只有几十毫秒,这一瞬间的读取开销和面板打开的开销被当成持续占用, 主进程 CPU 显示到 166%、GPU 到 28%,过几秒才恢复。 - 新增 MIN_USAGE_WINDOW(1,000,000 µs):相隔不足 1 秒的两张表不做比较。 - 基准新增可选的 earlier:正常读取返回的基准把上一个基准的计数记作 earlier。 - 距基准不足 1 秒的读取改按 earlier 计算(earlier 也必须早于它至少 1 秒), 没有 earlier 就不给占用率;返回的基准原样不变,下一次仍按同一组计数比较。 - 时钟回退(sampledAt 早于基准)照旧不给占用率,并重新开始一个不带 earlier 的基准。 - 契约文档和 memory-summary-v1.json 同步:已有用例的期望基准带上 earlier, 新增“按 earlier 计算并保留基准”“没有 earlier 时不给占用率并保留基准”两例。 earlier 是可选字段,schemaVersion 不变。 --- rust/contracts/rust-core-api.md | 23 +- rust/crates/process/src/memory.rs | 249 ++++++++++-- .../process-lifecycle/memory-summary-v1.json | 380 +++++++++++++++++- 3 files changed, 608 insertions(+), 44 deletions(-) diff --git a/rust/contracts/rust-core-api.md b/rust/contracts/rust-core-api.md index a9845630..3ea41cd3 100644 --- a/rust/contracts/rust-core-api.md +++ b/rust/contracts/rust-core-api.md @@ -5501,11 +5501,20 @@ the instance reported them and sum the processes that did. Percentages measure use between two tables of one host: - `sampledAt` is when the table was read, in microseconds of a clock that only - moves forward. A request with it gets `baseline: { sampledAt, processes }`: the - instance's processes that have `cpuTime` or `gpuEngines`, by process ID, each - `{ processId, startTime?, cpuTime?, gpuEngines? }` with one engine row per name. - The host sends it back as `previous` with its next table. -- A process is compared with the `previous` row of its process ID and start time; + moves forward. A request with it gets `baseline: { sampledAt, processes, + earlier? }`: the instance's processes that have `cpuTime` or `gpuEngines`, by + process ID, each `{ processId, startTime?, cpuTime?, gpuEngines? }` with one + engine row per name. The host sends it back unchanged as `previous` with its + next table. +- Two tables less than one second (1,000,000 µs) apart are never compared, so the + use of one moment, such as the reading itself or the details opening, does not + read as a sustained rate. A table read at least that long after `previous` is + measured from it, and its baseline keeps `previous`'s `{ sampledAt, processes }` + as `earlier`. A table read sooner is measured from `previous.earlier` when that + is at least one second before it, and has no percentages otherwise; either way + its `baseline` is `previous` unchanged, so the next table is measured from the + same counters. +- A process is compared with the counters' row of its process ID and start time; a row with another start time belongs to an earlier process with the same ID. A process the baseline does not have, such as one started since, adds nothing until the next table. A counter lower than its baseline adds nothing. @@ -5519,7 +5528,9 @@ Percentages measure use between two tables of one host: busiest engine's share of the interval is the percentage, at most 100. An engine the baseline row does not list counts from zero. - Percentages are rounded to a tenth. Without `sampledAt`, without `previous`, or - with a `sampledAt` no later than the baseline's, there are none. + without counters at least one second before the table, there are none. A + `sampledAt` earlier than the baseline's, which only a clock that went back + produces, has none and starts a new baseline without `earlier`. A table without the host or with a repeated process ID, or a `logicalProcessors` of 0, is `invalid_request`. Fixtures live in diff --git a/rust/crates/process/src/memory.rs b/rust/crates/process/src/memory.rs index 866122eb..bdc3cef8 100644 --- a/rust/crates/process/src/memory.rs +++ b/rust/crates/process/src/memory.rs @@ -23,7 +23,10 @@ //! `bytes` does not hold, such as dedicated video memory on Windows, is summed //! apart. Processor and graphics percentages come from the use counters of two //! tables: each summary returns a baseline the host sends back with the next -//! table, so the percentages are computed here too. Fixtures live in +//! table, so the percentages are computed here too. Two tables less than +//! [`MIN_USAGE_WINDOW`] apart are never compared: a table read that soon is +//! measured from the counters the baseline was itself measured from, and the +//! baseline stays as it is. Fixtures live in //! `rust/fixtures/process-lifecycle/memory-summary-v1.json`. use std::collections::{BTreeMap, HashMap}; @@ -37,6 +40,10 @@ const DEFAULT_ENTRY_LIMIT: usize = 20; const MAX_ENTRY_LIMIT: usize = 200; /// Longest entry name before it is shortened with an ellipsis. const NAME_CHARACTERS: usize = 80; +/// Shortest span, in microseconds, that processor and graphics percentages are +/// measured over. Over a shorter span the use of a moment, such as the reading +/// itself or a window opening, would read as a sustained rate. +pub const MIN_USAGE_WINDOW: u64 = 1_000_000; /// One row of the host's process table. #[derive(Clone, Debug, Deserialize)] @@ -152,6 +159,21 @@ pub struct UsageBaseline { pub sampled_at: u64, /// The instance's processes that had a use counter, by process ID. pub processes: Vec, + /// The counters this baseline's own percentages were measured from, which + /// a table read less than [`MIN_USAGE_WINDOW`] after the baseline is + /// measured from instead. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub earlier: Option, +} + +/// Use counters of an earlier table, kept in a baseline. +#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] +#[serde(rename_all = "camelCase")] +pub struct UsageCounters { + /// `sampledAt` of the table the counters were taken from. + pub sampled_at: u64, + /// The instance's processes that had a use counter, by process ID. + pub processes: Vec, } /// Use counters of one process in a baseline. @@ -222,11 +244,12 @@ pub struct UsageFigures { /// Graphics memory that the in-memory bytes do not hold. #[serde(skip_serializing_if = "Option::is_none")] pub gpu_memory_bytes: Option, - /// Processor use since the previous table, rounded to a tenth. + /// Processor use since the counters the table is measured from, rounded + /// to a tenth. #[serde(skip_serializing_if = "Option::is_none")] pub cpu_percent: Option, - /// Use of the busiest graphics engine since the previous table, rounded - /// to a tenth and at most 100. + /// Use of the busiest graphics engine since the counters the table is + /// measured from, rounded to a tenth and at most 100. #[serde(skip_serializing_if = "Option::is_none")] pub gpu_percent: Option, } @@ -292,7 +315,8 @@ pub struct MemorySummary { /// Entries past the limit. pub omitted: OmittedEntries, /// Use counters to send with the next table; present when the request - /// has `sampledAt`. + /// has `sampledAt`. A table read less than [`MIN_USAGE_WINDOW`] after the + /// previous baseline returns that baseline unchanged. #[serde(skip_serializing_if = "Option::is_none")] pub baseline: Option, } @@ -368,15 +392,10 @@ pub fn summarize(request: &MemoryRequest) -> Result } .owners(); - let interval = match (request.sampled_at, &request.previous) { - (Some(now), Some(previous)) => now - .checked_sub(previous.sampled_at) - .filter(|&span| span > 0), - _ => None, - }; + let window = UsageWindow::of(request.sampled_at, request.previous.as_ref()); let mut previous: HashMap = HashMap::new(); - if let (Some(_), Some(baseline)) = (interval, &request.previous) { - for process in &baseline.processes { + if let Some((_, processes)) = window.measured_from { + for process in processes { previous.entry(process.process_id).or_insert(process); } } @@ -408,7 +427,10 @@ pub fn summarize(request: &MemoryRequest) -> Result .1 .add(process, &usage); } - if request.sampled_at.is_some() && (process.cpu_time.is_some() || !engines.is_empty()) { + if request.sampled_at.is_some() + && !window.keeps_baseline + && (process.cpu_time.is_some() || !engines.is_empty()) + { baseline.push(BaselineProcess { process_id: process.process_id, start_time: process.start_time, @@ -425,7 +447,7 @@ pub fn summarize(request: &MemoryRequest) -> Result } let rates = Rates { - interval: interval.unwrap_or(0), + interval: window.measured_from.map_or(0, |(span, _)| span), logical_processors: request.logical_processors, }; let mut entries: Vec = groups @@ -474,13 +496,74 @@ pub fn summarize(request: &MemoryRequest) -> Result .collect(), entries, omitted, - baseline: request.sampled_at.map(|sampled_at| UsageBaseline { - sampled_at, - processes: baseline, - }), + baseline: request + .sampled_at + .map(|sampled_at| match &request.previous { + Some(previous) if window.keeps_baseline => previous.clone(), + previous => UsageBaseline { + sampled_at, + processes: baseline, + earlier: previous + .as_ref() + .filter(|_| window.measured_from.is_some()) + .map(|previous| UsageCounters { + sampled_at: previous.sampled_at, + processes: previous.processes.clone(), + }), + }, + }), }) } +/// The counters a table's use is measured from, and whether the table starts +/// the next baseline. +struct UsageWindow<'a> { + /// Microseconds between the counters and the table, at least + /// [`MIN_USAGE_WINDOW`], and the counters; none when nothing can be + /// compared. + measured_from: Option<(u64, &'a [BaselineProcess])>, + /// Whether the table was read too soon after the previous baseline, which + /// is then returned unchanged so the next table is measured from it. + keeps_baseline: bool, +} + +impl<'a> UsageWindow<'a> { + /// The window of a table read at `sampled_at`, given the previous + /// baseline. + /// + /// A table read at least [`MIN_USAGE_WINDOW`] after the baseline is + /// measured from it and starts a new one. A table read sooner is measured + /// from the baseline's earlier counters when they are old enough, and + /// keeps the baseline. A table read before the baseline, which only a + /// clock that went back produces, has nothing to compare with and starts a + /// new baseline. + fn of(sampled_at: Option, previous: Option<&'a UsageBaseline>) -> Self { + let none = UsageWindow { + measured_from: None, + keeps_baseline: false, + }; + let (Some(now), Some(previous)) = (sampled_at, previous) else { + return none; + }; + let Some(span) = now.checked_sub(previous.sampled_at) else { + return none; + }; + if span >= MIN_USAGE_WINDOW { + return UsageWindow { + measured_from: Some((span, &previous.processes)), + keeps_baseline: false, + }; + } + UsageWindow { + measured_from: previous.earlier.as_ref().and_then(|earlier| { + let span = now.checked_sub(earlier.sampled_at)?; + (span >= MIN_USAGE_WINDOW).then_some((span, earlier.processes.as_slice())) + }), + keeps_baseline: true, + } + } +} + /// Busy time of each engine of a list, times of one name added up. fn engine_times(engines: &[GpuEngineTime]) -> BTreeMap<&str, u64> { let mut times = BTreeMap::new(); @@ -491,7 +574,7 @@ fn engine_times(engines: &[GpuEngineTime]) -> BTreeMap<&str, u64> { times } -/// What one process used between the previous baseline and this table. +/// What one process used between the counters compared and this table. #[derive(Default)] struct Usage<'a> { /// Processor microseconds, when both tables have the process's counter. @@ -502,7 +585,8 @@ struct Usage<'a> { } impl<'a> Usage<'a> { - /// The use of `process`, whose engines are `engines`, since `previous`. + /// The use of `process`, whose engines are `engines`, since the counters + /// `previous` of the same process ID. /// A baseline row with another start time belongs to an earlier process /// with the same ID, so nothing is compared. fn since( @@ -566,8 +650,8 @@ impl Shown { /// How use over the interval becomes a percentage. struct Rates { - /// Microseconds between the previous baseline and this table; never zero - /// when a percentage is shown. + /// Microseconds between the counters compared and this table; at least + /// [`MIN_USAGE_WINDOW`] when a percentage is shown. interval: u64, /// Processors a processor percentage is a share of, if any. logical_processors: Option, @@ -917,9 +1001,26 @@ mod tests { Some(UsageBaseline { sampled_at, processes, + earlier: None, }) } + fn cpu_counter(process_id: i64, cpu_time: u64) -> BaselineProcess { + BaselineProcess { + process_id, + start_time: None, + cpu_time: Some(cpu_time), + gpu_engines: Vec::new(), + } + } + + fn host_using(cpu_time: u64) -> MemoryProcess { + MemoryProcess { + cpu_time: Some(cpu_time), + ..process(1, 0, 1) + } + } + #[test] fn times_of_one_engine_add_up_and_counters_that_went_back_count_nothing() { let mut host = process(1, 0, 1); @@ -949,20 +1050,31 @@ mod tests { } #[test] - fn a_table_read_no_later_than_the_baseline_has_no_percentages() { - let mut host = process(1, 0, 1); - host.cpu_time = Some(2_000); - let previous = BaselineProcess { - process_id: 1, - start_time: None, - cpu_time: Some(1_000), - gpu_engines: Vec::new(), - }; - for sampled_at in [5_000, 4_000] { + fn a_table_read_before_the_baseline_starts_a_new_one_without_percentages() { + let summary = summarize(&MemoryRequest { + sampled_at: Some(4_000_000), + previous: baseline(5_000_000, vec![cpu_counter(1, 1_000)]), + ..request(1, vec![host_using(2_000)]) + }) + .expect("table should summarize"); + assert_eq!(summary.usage, UsageFigures::default()); + assert_eq!( + summary.baseline, + baseline(4_000_000, vec![cpu_counter(1, 2_000)]) + ); + } + + // A table read 50 ms after the baseline once showed 100% for the processor + // time of that moment, which the reading itself and the opening details + // used; so short a window has no percentages and keeps the baseline. + #[test] + fn a_table_read_too_soon_after_the_baseline_keeps_it_and_has_no_percentages() { + let previous = baseline(5_000_000, vec![cpu_counter(1, 1_000)]); + for sampled_at in [5_000_000, 5_050_000, 5_999_999] { let summary = summarize(&MemoryRequest { sampled_at: Some(sampled_at), - previous: baseline(5_000, vec![previous.clone()]), - ..request(1, vec![host.clone()]) + previous: previous.clone(), + ..request(1, vec![host_using(51_000)]) }) .expect("table should summarize"); assert_eq!( @@ -970,10 +1082,75 @@ mod tests { UsageFigures::default(), "sampled at {sampled_at}" ); - assert_eq!(summary.baseline.map(|b| b.sampled_at), Some(sampled_at)); + assert_eq!(summary.baseline, previous, "sampled at {sampled_at}"); } } + #[test] + fn a_table_read_too_soon_is_measured_from_the_earlier_counters() { + let previous = Some(UsageBaseline { + earlier: Some(UsageCounters { + sampled_at: 3_000_000, + processes: vec![cpu_counter(1, 500_000)], + }), + ..baseline(5_000_000, vec![cpu_counter(1, 1_000_000)]).unwrap() + }); + let summary = summarize(&MemoryRequest { + sampled_at: Some(5_050_000), + previous: previous.clone(), + ..request(1, vec![host_using(1_525_000)]) + }) + .expect("table should summarize"); + assert_eq!(summary.usage.cpu_percent, Some(50.0)); + assert_eq!(summary.baseline, previous); + + // Earlier counters a window does not separate from the table are not + // compared either. + let close = Some(UsageBaseline { + earlier: Some(UsageCounters { + sampled_at: 4_500_000, + processes: vec![cpu_counter(1, 500_000)], + }), + ..baseline(5_000_000, vec![cpu_counter(1, 1_000_000)]).unwrap() + }); + let summary = summarize(&MemoryRequest { + sampled_at: Some(5_050_000), + previous: close.clone(), + ..request(1, vec![host_using(1_525_000)]) + }) + .expect("table should summarize"); + assert_eq!(summary.usage, UsageFigures::default()); + assert_eq!(summary.baseline, close); + } + + #[test] + fn a_table_read_a_window_later_keeps_the_previous_counters_as_earlier() { + let previous = Some(UsageBaseline { + earlier: Some(UsageCounters { + sampled_at: 3_000_000, + processes: vec![cpu_counter(1, 0)], + }), + ..baseline(5_000_000, vec![cpu_counter(1, 1_000_000)]).unwrap() + }); + let summary = summarize(&MemoryRequest { + sampled_at: Some(5_000_000 + MIN_USAGE_WINDOW), + previous, + ..request(1, vec![host_using(1_250_000)]) + }) + .expect("table should summarize"); + assert_eq!(summary.usage.cpu_percent, Some(25.0)); + assert_eq!( + summary.baseline, + Some(UsageBaseline { + earlier: Some(UsageCounters { + sampled_at: 5_000_000, + processes: vec![cpu_counter(1, 1_000_000)], + }), + ..baseline(6_000_000, vec![cpu_counter(1, 1_250_000)]).unwrap() + }) + ); + } + #[test] fn a_share_of_no_processor_is_rejected() { let rejected = summarize(&MemoryRequest { diff --git a/rust/fixtures/process-lifecycle/memory-summary-v1.json b/rust/fixtures/process-lifecycle/memory-summary-v1.json index 51125fa8..121b69db 100644 --- a/rust/fixtures/process-lifecycle/memory-summary-v1.json +++ b/rust/fixtures/process-lifecycle/memory-summary-v1.json @@ -1105,7 +1105,57 @@ "startTime": 1500, "cpuTime": 2000000 } - ] + ], + "earlier": { + "sampledAt": 10000000, + "processes": [ + { + "processId": 1, + "cpuTime": 98000000 + }, + { + "processId": 100, + "startTime": 1000, + "cpuTime": 4000000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 700000 + }, + { + "engine": "gpu0/copy", + "busyTime": 100000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 2500000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 100000 + } + ] + }, + { + "processId": 201, + "startTime": 2500, + "cpuTime": 1000000 + }, + { + "processId": 300, + "startTime": 1500, + "cpuTime": 2000000 + }, + { + "processId": 400, + "startTime": 1800, + "cpuTime": 7000000 + } + ] + } } } }, @@ -1272,7 +1322,36 @@ "processId": 300, "cpuTime": 7000000 } - ] + ], + "earlier": { + "sampledAt": 2000000, + "processes": [ + { + "processId": 100, + "cpuTime": 2000000, + "gpuEngines": [ + { + "engine": "luid0/node0", + "busyTime": 1000000 + } + ] + }, + { + "processId": 200, + "cpuTime": 1000000, + "gpuEngines": [ + { + "engine": "luid0/node0", + "busyTime": 0 + } + ] + }, + { + "processId": 300, + "cpuTime": 1000000 + } + ] + } } } }, @@ -1457,6 +1536,303 @@ } ] } + ], + "earlier": { + "sampledAt": 1000000, + "processes": [ + { + "processId": 100, + "cpuTime": 0 + } + ] + } + } + } + }, + { + "name": "a table read less than a second after the baseline is measured from its earlier counters and keeps it", + "request": { + "hostProcessId": 100, + "processes": [ + { + "processId": 100, + "parentProcessId": 1, + "startTime": 1000, + "name": "Lithe", + "bytes": 300, + "cpuTime": 3000000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 600000 + } + ] + }, + { + "processId": 200, + "parentProcessId": 100, + "startTime": 2000, + "name": "zsh", + "bytes": 50, + "cpuTime": 1500000 + } + ], + "sampledAt": 12050000, + "previous": { + "sampledAt": 12000000, + "processes": [ + { + "processId": 100, + "startTime": 1000, + "cpuTime": 2990000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 590000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 1490000 + } + ], + "earlier": { + "sampledAt": 10000000, + "processes": [ + { + "processId": 100, + "startTime": 1000, + "cpuTime": 1975000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 190000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 1090000 + } + ] + } + } + }, + "expected": { + "totalBytes": 350, + "cpuPercent": 70.0, + "gpuPercent": 20.0, + "categories": [ + { + "kind": "host", + "bytes": 300, + "processCount": 1, + "cpuPercent": 50.0, + "gpuPercent": 20.0 + }, + { + "kind": "languageServer", + "bytes": 0, + "processCount": 0, + "cpuPercent": 0.0, + "gpuPercent": 0.0 + }, + { + "kind": "pluginService", + "bytes": 0, + "processCount": 0, + "cpuPercent": 0.0, + "gpuPercent": 0.0 + }, + { + "kind": "systemHelper", + "bytes": 0, + "processCount": 0, + "cpuPercent": 0.0, + "gpuPercent": 0.0 + }, + { + "kind": "childProcess", + "bytes": 50, + "processCount": 1, + "cpuPercent": 20.0, + "gpuPercent": 0.0 + } + ], + "entries": [ + { + "kind": "childProcess", + "name": "zsh", + "processId": 200, + "bytes": 50, + "processCount": 1, + "cpuPercent": 20.0, + "gpuPercent": 0.0 + } + ], + "omitted": { + "count": 0, + "bytes": 0 + }, + "baseline": { + "sampledAt": 12000000, + "processes": [ + { + "processId": 100, + "startTime": 1000, + "cpuTime": 2990000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 590000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 1490000 + } + ], + "earlier": { + "sampledAt": 10000000, + "processes": [ + { + "processId": 100, + "startTime": 1000, + "cpuTime": 1975000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 190000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 1090000 + } + ] + } + } + } + }, + { + "name": "a table read less than a second after a baseline without earlier counters has no percentages and keeps it", + "request": { + "hostProcessId": 100, + "processes": [ + { + "processId": 100, + "parentProcessId": 1, + "startTime": 1000, + "name": "Lithe", + "bytes": 300, + "cpuTime": 3000000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 600000 + } + ] + }, + { + "processId": 200, + "parentProcessId": 100, + "startTime": 2000, + "name": "zsh", + "bytes": 50, + "cpuTime": 1500000 + } + ], + "sampledAt": 12050000, + "previous": { + "sampledAt": 12000000, + "processes": [ + { + "processId": 100, + "startTime": 1000, + "cpuTime": 2990000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 590000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 1490000 + } + ] + } + }, + "expected": { + "totalBytes": 350, + "categories": [ + { + "kind": "host", + "bytes": 300, + "processCount": 1 + }, + { + "kind": "languageServer", + "bytes": 0, + "processCount": 0 + }, + { + "kind": "pluginService", + "bytes": 0, + "processCount": 0 + }, + { + "kind": "systemHelper", + "bytes": 0, + "processCount": 0 + }, + { + "kind": "childProcess", + "bytes": 50, + "processCount": 1 + } + ], + "entries": [ + { + "kind": "childProcess", + "name": "zsh", + "processId": 200, + "bytes": 50, + "processCount": 1 + } + ], + "omitted": { + "count": 0, + "bytes": 0 + }, + "baseline": { + "sampledAt": 12000000, + "processes": [ + { + "processId": 100, + "startTime": 1000, + "cpuTime": 2990000, + "gpuEngines": [ + { + "engine": "gpu0/3d", + "busyTime": 590000 + } + ] + }, + { + "processId": 200, + "startTime": 2000, + "cpuTime": 1490000 + } ] } }