// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_BUILTINS_PROFILE_DATA_READER_H_ #define V8_BUILTINS_PROFILE_DATA_READER_H_ #include <cstddef> #include <cstdint> #include <map> #include <vector> #include "src/common/globals.h" namespace v8 { namespace internal { class ProfileDataFromFile { … }; // The following strings can't be static members of ProfileDataFromFile until // C++ 17; see https://stackoverflow.com/q/8016780/839379 . So for now we use a // namespace. namespace ProfileDataFromFileConstants { // Any line in a v8.log beginning with this string represents a basic block // counter. static constexpr char kBlockCounterMarker[] = …; // Any line in the profile beginning with this string represents a basic block // branch hint. static constexpr char kBlockHintMarker[] = …; // Any line in a v8.log beginning with this string represents the hash of the // function Graph for a builtin. static constexpr char kBuiltinHashMarker[] = …; } // namespace ProfileDataFromFileConstants } // namespace internal } // namespace v8 #endif // V8_BUILTINS_PROFILE_DATA_READER_H_