| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |