1 /* 2 * Copyright (c) 2021 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 package ohos.devtools.views.trace.metrics; 17 18 /** 19 * sql text file path 20 * 21 * @since 2021/9/16 22 */ 23 public enum MetricsSql { 24 DISTRIBUTED_TERM("distributed_term"), 25 TRACE_CPU("trace_cpu"), 26 TRACE_CPU_TOP10("trace_cpu_top10"), 27 TRACE_MEM("trace_mem"), 28 TRACE_MEM_TOP10("trace_mem_top10"), 29 TRACE_MEM_UNAGG("trace_mem_unagg"), 30 TRACE_TASK_NAMES("trace_task_names"), 31 TRACE_STATS("trace_stats"), 32 TRACE_METADATA("trace_metadata"), 33 SYS_CALLS("sys_calls"), 34 SYS_CALLS_TOP10("sys_calls_top10"); 35 36 /** 37 * get name 38 * 39 * @return name name 40 */ getName()41 public String getName() { 42 return name; 43 } 44 45 private final String name; 46 MetricsSql(String name)47 MetricsSql(String name) { 48 this.name = name; 49 } 50 } 51