Index: runtime/vm/profiler_service.cc |
diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc |
index 997aab191597c6a6c17eed9a57fc02144318031b..bcba810c762904073ca317b46fc79ef721bbd2cc 100644 |
--- a/runtime/vm/profiler_service.cc |
+++ b/runtime/vm/profiler_service.cc |
@@ -14,7 +14,7 @@ |
namespace dart { |
-DECLARE_FLAG(int, profile_depth); |
+DECLARE_FLAG(int, max_profile_depth); |
DECLARE_FLAG(int, profile_period); |
DEFINE_FLAG(bool, trace_profiler, false, "Trace profiler."); |
@@ -1865,7 +1865,7 @@ void Profile::PrintJSON(JSONStream* stream) { |
obj.AddProperty("samplePeriod", |
static_cast<intptr_t>(FLAG_profile_period)); |
obj.AddProperty("stackDepth", |
- static_cast<intptr_t>(FLAG_profile_depth)); |
+ static_cast<intptr_t>(FLAG_max_profile_depth)); |
obj.AddProperty("sampleCount", sample_count()); |
obj.AddProperty("timeSpan", MicrosecondsToSeconds(GetTimeSpan())); |
{ |