From 959cd6b191ecb464c09631ccff5791d6fa3d2303 Mon Sep 17 00:00:00 2001 From: "johnmccutchan@google.com" Date: Fri, 10 Jan 2014 17:24:11 +0000 Subject: [PATCH] Fix profile sample buffer leak BUG= Review URL: https://codereview.chromium.org//132903004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31696 260f80e4-7a28-3924-810f-c04153c831b5 --- runtime/vm/profiler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc index d66a6b3bc8b..b967123466e 100644 --- a/runtime/vm/profiler.cc +++ b/runtime/vm/profiler.cc @@ -32,7 +32,7 @@ namespace dart { defined(TARGET_OS_MACOS) || defined(TARGET_OS_ANDROID) DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler"); #else - DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler"); + DEFINE_FLAG(bool, profile, true, "Enable Sampling Profiler"); #endif DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates."); DEFINE_FLAG(charp, profile_dir, NULL, @@ -112,7 +112,6 @@ void Profiler::ShutdownProfilingForIsolate(Isolate* isolate) { return; } isolate->set_profiler_data(NULL); - profiler_data->set_sample_buffer(NULL); delete profiler_data; if (FLAG_trace_profiled_isolates) { OS::Print("Profiler Shutdown %p %s\n", isolate, isolate->name());