Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(843)

Side by Side Diff: src/isolate.cc

Issue 1618693004: Revert "Revert of [profiler] Implement POC Sampling Heap Profiler (patchset #12 id:220001 of https:… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add flag to suppress randomness from sampling heap profiler tests Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/spaces.h ('k') | src/profiler/heap-profiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 bootstrapper_->TearDown(); 1932 bootstrapper_->TearDown();
1933 1933
1934 if (runtime_profiler_ != NULL) { 1934 if (runtime_profiler_ != NULL) {
1935 delete runtime_profiler_; 1935 delete runtime_profiler_;
1936 runtime_profiler_ = NULL; 1936 runtime_profiler_ = NULL;
1937 } 1937 }
1938 1938
1939 delete basic_block_profiler_; 1939 delete basic_block_profiler_;
1940 basic_block_profiler_ = NULL; 1940 basic_block_profiler_ = NULL;
1941 1941
1942 delete heap_profiler_;
1943 heap_profiler_ = NULL;
1944
1942 heap_.TearDown(); 1945 heap_.TearDown();
1943 logger_->TearDown(); 1946 logger_->TearDown();
1944 1947
1945 cancelable_task_manager()->CancelAndWait(); 1948 cancelable_task_manager()->CancelAndWait();
1946 1949
1947 delete heap_profiler_;
1948 heap_profiler_ = NULL;
1949 delete cpu_profiler_; 1950 delete cpu_profiler_;
1950 cpu_profiler_ = NULL; 1951 cpu_profiler_ = NULL;
1951 1952
1952 delete root_index_map_; 1953 delete root_index_map_;
1953 root_index_map_ = NULL; 1954 root_index_map_ = NULL;
1954 1955
1955 ClearSerializerData(); 1956 ClearSerializerData();
1956 } 1957 }
1957 1958
1958 1959
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
2849 // Then check whether this scope intercepts. 2850 // Then check whether this scope intercepts.
2850 if ((flag & intercept_mask_)) { 2851 if ((flag & intercept_mask_)) {
2851 intercepted_flags_ |= flag; 2852 intercepted_flags_ |= flag;
2852 return true; 2853 return true;
2853 } 2854 }
2854 return false; 2855 return false;
2855 } 2856 }
2856 2857
2857 } // namespace internal 2858 } // namespace internal
2858 } // namespace v8 2859 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces.h ('k') | src/profiler/heap-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698