1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16//trace 状态 17export enum CatchTraceStatus { 18 catch_trace_start = 1, 19 // trace采集结束 20 catch_trace_finish = 2, 21 // trace采集第一次运行中 22 catch_trace_first_running = 3, 23 // trace采集运行中 24 catch_trace_running = 4, 25 // trace 采集 停止后间隔60次 26 catch_trace_times = 60 27} 28 29//采集状态 30export enum TaskStatus { 31 //采集初始化 32 task_init = 1, 33 //采集运行中 34 task_running = 2, 35 //采集暂停 36 task_pause = 3, 37 //采集结束 38 task_stop = 4 39} 40 41//采集项 42export enum CollectorType { 43 TYPE_CPU = "CPU", 44 TYPE_GPU = "GPU", 45 TYPE_DDR = "DDR", 46 TYPE_FPS = "FPS", 47 TYPE_HW_COUNTER = "HW_COUNTER", 48 TYPE_POWER = "POWER", 49 TYPE_TEMPERATURE = "TEMP", 50 TYPE_RAM = "RAM", 51 TYPE_NET = "NETWORK", 52 TYPE_UNKNOWN = "UNKNOWN" 53}; 54 55 56 57