| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index 6bbefbceb142f4924c58d869688f1e91f08e3bf7..2b5ecb447b60d82694a7f6dadb92b53e10fe70ab 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -897,6 +897,16 @@ void Logger::HeapSampleJSConstructorEvent(const char* constructor,
|
| }
|
|
|
|
|
| +void Logger::HeapSampleJSRetainersEvent(const char* event) {
|
| +#ifdef ENABLE_LOGGING_AND_PROFILING
|
| + if (!Log::IsEnabled() || !FLAG_log_gc) return;
|
| + LogMessageBuilder msg;
|
| + msg.Append("heap-js-ret-item,%s\n", event);
|
| + msg.WriteToLogFile();
|
| +#endif
|
| +}
|
| +
|
| +
|
| void Logger::DebugTag(const char* call_site_tag) {
|
| #ifdef ENABLE_LOGGING_AND_PROFILING
|
| if (!Log::IsEnabled() || !FLAG_log) return;
|
|
|