| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ "//src/sys/test_runners/inspect/default.shard.cml" ], |
| program: { |
| accessor: "ALL", |
| timeout_seconds: "60", |
| cases: [ |
| // Appmgr is using less than 2MB of inspect space for measurements |
| "core/appmgr:root/cpu_stats/measurements/@inspect:current_size WHERE [a] a < 2*1024*1024", |
| |
| // Appmgr has at least 2MB of inspect space for measurements. |
| "core/appmgr:root/cpu_stats/measurements/@inspect:maximum_size WHERE [a] a >= 2*1024*1024", |
| |
| // Appmgr exposes recent usage consisting of 6 measurements. |
| "core/appmgr:root/cpu_stats/recent_usage:* WHERE [a] Count(a) == 6", |
| |
| // Appmgr exposes stats on measurement time. (Histograms are unhandled.) |
| "core/appmgr:root/cpu_stats:process_time_ns WHERE [a] UnhandledType(a)", |
| |
| // Appmgr exposes the number of tracked tasks. |
| "core/appmgr:root/cpu_stats:task_count WHERE [a] a >= 0", |
| |
| // Appmgr is using less than 2MB of inspect space. |
| "core/appmgr:root/inspect_stats:current_size WHERE [a] a < 2*1024*1024", |
| |
| // Appmgr has at least 2MB of inspect space. |
| "core/appmgr:root/inspect_stats:maximum_size WHERE [a] a >= 2*1024*1024", |
| ], |
| }, |
| } |