1// Copyright (C) 2024 The Android Open Source Project 2// 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// This file contains constants for some command IDs that are used directly 16// from frontend code (e.g. the details panel that has buttons for critical 17// path). They exist to deal with all cases where some feature cannot be done 18// just with the existing API (e.g. the command palette), and a more direct 19// coupling between frontend and commands is necessary. 20// Adding entries to this file usually is the symptom of a missing API in the 21// plugin surface (e.g. the ability to customize context menus). 22// These constants exist just to make the dependency evident at code 23// search time, rather than copy-pasting the string in two places. 24 25export const CRITICAL_PATH_CMD = 'perfetto.CriticalPath'; 26export const CRITICAL_PATH_LITE_CMD = 'perfetto.CriticalPathLite'; 27