5 #ifndef V8_TRACING_TRACED_VALUE_H_ 6 #define V8_TRACING_TRACED_VALUE_H_ 13 #include "include/v8-platform.h" 14 #include "src/base/macros.h" 23 static std::unique_ptr<TracedValue> Create();
29 void SetInteger(
const char* name,
int value);
30 void SetDouble(
const char* name,
double value);
31 void SetBoolean(
const char* name,
bool value);
32 void SetString(
const char* name,
const char* value);
33 void SetString(
const char* name,
const std::string& value) {
34 SetString(name, value.c_str());
36 void BeginDictionary(
const char* name);
37 void BeginArray(
const char* name);
39 void AppendInteger(
int);
40 void AppendDouble(
double);
41 void AppendBoolean(
bool);
42 void AppendString(
const char*);
43 void AppendString(
const std::string& value) { AppendString(value.c_str()); }
45 void BeginDictionary();
54 void WriteName(
const char* name);
58 std::vector<bool> nesting_stack_;
70 #endif // V8_TRACING_TRACED_VALUE_H_ void AppendAsTraceFormat(std::string *out) const override