Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index b0bebe8fa8b952961a5bc28af27cf67732448f01..044250f1197070b7803105fe6270fa7fd77ff9dd 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -288,6 +288,12 @@ void PerfBasicLogger::LogRecordedBuffer(Code* code, |
int length) { |
DCHECK(code->instruction_start() == code->address() + Code::kHeaderSize); |
+ if (FLAG_perf_basic_prof_only_functions && |
+ (code->kind() != Code::FUNCTION && |
+ code->kind() != Code::OPTIMIZED_FUNCTION)) { |
+ return; |
+ } |
+ |
base::OS::FPrint(perf_output_handle_, "%llx %x %.*s\n", |
reinterpret_cast<uint64_t>(code->instruction_start()), |
code->instruction_size(), length, name); |