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
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user