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

Side by Side Diff: src/log.cc

Issue 357443003: CPU profiler: increase the max number of captured frames. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Unflake the test. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/sampler.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 <stdarg.h> 5 #include <stdarg.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 msg.Append(",1,"); 1706 msg.Append(",1,");
1707 msg.AppendAddress(sample->external_callback); 1707 msg.AppendAddress(sample->external_callback);
1708 } else { 1708 } else {
1709 msg.Append(",0,"); 1709 msg.Append(",0,");
1710 msg.AppendAddress(sample->tos); 1710 msg.AppendAddress(sample->tos);
1711 } 1711 }
1712 msg.Append(",%d", static_cast<int>(sample->state)); 1712 msg.Append(",%d", static_cast<int>(sample->state));
1713 if (overflow) { 1713 if (overflow) {
1714 msg.Append(",overflow"); 1714 msg.Append(",overflow");
1715 } 1715 }
1716 for (int i = 0; i < sample->frames_count; ++i) { 1716 for (unsigned i = 0; i < sample->frames_count; ++i) {
1717 msg.Append(','); 1717 msg.Append(',');
1718 msg.AppendAddress(sample->stack[i]); 1718 msg.AppendAddress(sample->stack[i]);
1719 } 1719 }
1720 msg.Append('\n'); 1720 msg.Append('\n');
1721 msg.WriteToLogFile(); 1721 msg.WriteToLogFile();
1722 } 1722 }
1723 1723
1724 1724
1725 void Logger::StopProfiler() { 1725 void Logger::StopProfiler() {
1726 if (!log_->IsEnabled()) return; 1726 if (!log_->IsEnabled()) return;
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 if (jit_logger_) { 2121 if (jit_logger_) {
2122 removeCodeEventListener(jit_logger_); 2122 removeCodeEventListener(jit_logger_);
2123 delete jit_logger_; 2123 delete jit_logger_;
2124 jit_logger_ = NULL; 2124 jit_logger_ = NULL;
2125 } 2125 }
2126 2126
2127 return log_->Close(); 2127 return log_->Close();
2128 } 2128 }
2129 2129
2130 } } // namespace v8::internal 2130 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/sampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698