/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef SRC_TRACE_PROCESSOR_UTIL_BUILD_ID_H_ #define SRC_TRACE_PROCESSOR_UTIL_BUILD_ID_H_ #include <string> #include <utility> #include "perfetto/ext/base/hash.h" #include "perfetto/ext/base/string_view.h" namespace perfetto { namespace trace_processor { // Represents the unique identifier of an executable, shared library, or module. // For example for ELF files this is the id stored in the .note.gnu.build-id // section. Sometimes a breakpad module id is used. // This class abstracts away the details of where this id comes from and how it // is converted to a StringId which is the representation used by tables in // trace_processor. class BuildId { … }; } // namespace trace_processor } // namespace perfetto template <> struct std::hash<perfetto::trace_processor::BuildId> { … }; #endif // SRC_TRACE_PROCESSOR_UTIL_BUILD_ID_H_