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

Side by Side Diff: src/isolate.cc

Issue 1708573003: [WIP]Create a V8 sampler library and tracing controller. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/d8.cc ('k') | src/log.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>
11 11
12 #include "include/v8-sampler.h"
12 #include "src/ast/ast.h" 13 #include "src/ast/ast.h"
13 #include "src/ast/scopeinfo.h" 14 #include "src/ast/scopeinfo.h"
14 #include "src/base/platform/platform.h" 15 #include "src/base/platform/platform.h"
15 #include "src/base/sys-info.h" 16 #include "src/base/sys-info.h"
16 #include "src/base/utils/random-number-generator.h" 17 #include "src/base/utils/random-number-generator.h"
17 #include "src/basic-block-profiler.h" 18 #include "src/basic-block-profiler.h"
18 #include "src/bootstrapper.h" 19 #include "src/bootstrapper.h"
19 #include "src/codegen.h" 20 #include "src/codegen.h"
20 #include "src/compilation-cache.h" 21 #include "src/compilation-cache.h"
21 #include "src/compilation-statistics.h" 22 #include "src/compilation-statistics.h"
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 1916
1916 if (FLAG_print_deopt_stress) { 1917 if (FLAG_print_deopt_stress) {
1917 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); 1918 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_);
1918 } 1919 }
1919 1920
1920 if (cpu_profiler_) { 1921 if (cpu_profiler_) {
1921 cpu_profiler_->DeleteAllProfiles(); 1922 cpu_profiler_->DeleteAllProfiles();
1922 } 1923 }
1923 1924
1924 // We must stop the logger before we tear down other components. 1925 // We must stop the logger before we tear down other components.
1925 Sampler* sampler = logger_->sampler(); 1926 // Sampler* sampler = logger_->sampler();
1927 V8Sampler* sampler = logger_->sampler();
1926 if (sampler && sampler->IsActive()) sampler->Stop(); 1928 if (sampler && sampler->IsActive()) sampler->Stop();
1927 1929
1928 delete deoptimizer_data_; 1930 delete deoptimizer_data_;
1929 deoptimizer_data_ = NULL; 1931 deoptimizer_data_ = NULL;
1930 builtins_.TearDown(); 1932 builtins_.TearDown();
1931 bootstrapper_->TearDown(); 1933 bootstrapper_->TearDown();
1932 1934
1933 if (runtime_profiler_ != NULL) { 1935 if (runtime_profiler_ != NULL) {
1934 delete runtime_profiler_; 1936 delete runtime_profiler_;
1935 runtime_profiler_ = NULL; 1937 runtime_profiler_ = NULL;
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 // Then check whether this scope intercepts. 2859 // Then check whether this scope intercepts.
2858 if ((flag & intercept_mask_)) { 2860 if ((flag & intercept_mask_)) {
2859 intercepted_flags_ |= flag; 2861 intercepted_flags_ |= flag;
2860 return true; 2862 return true;
2861 } 2863 }
2862 return false; 2864 return false;
2863 } 2865 }
2864 2866
2865 } // namespace internal 2867 } // namespace internal
2866 } // namespace v8 2868 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698