Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 2e7796a7ac09021843a2bd79f0df0f37de28b1a6..82c48ccf0ec3577c6ad41ea7656113ec978fbdd0 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -915,8 +915,9 @@ void Logger::HeapSampleJSRetainersEvent( |
// Event starts with comma, so we don't have it in the format string. |
static const char* event_text = "heap-js-ret-item,%s"; |
// We take placeholder strings into account, but it's OK to be conservative. |
- static const int event_text_len = strlen(event_text); |
- const int cons_len = strlen(constructor), event_len = strlen(event); |
+ static const int event_text_len = StrLength(event_text); |
+ const int cons_len = StrLength(constructor); |
+ const int event_len = StrLength(event); |
int pos = 0; |
// Retainer lists can be long. We may need to split them into multiple events. |
do { |