Skip to content

Commit

Permalink
[vm] Disable expensive timeline parameter in bytecode reader
Browse files Browse the repository at this point in the history
Change-Id: Iddb9e5f7164a053116ad604d42c27c26be45aabb
Reviewed-on: https://dart-review.googlesource.com/c/81900
Reviewed-by: Alexander Markov <[email protected]>
Commit-Queue: Zach Anderson <[email protected]>
  • Loading branch information
zanderso authored and [email protected] committed Oct 29, 2018
1 parent e414b58 commit 50a3460
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/vm/compiler/frontend/bytecode_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ void BytecodeMetadataHelper::ReadMetadata(const Function& function) {
#if !defined(PRODUCT)
TimelineDurationScope tds(Thread::Current(), Timeline::GetCompilerStream(),
"BytecodeMetadataHelper::ReadMetadata");
// This increases bytecode reading time by ~7%, so only keep it around for
// debugging.
#if defined(DEBUG)
tds.SetNumArguments(1);
tds.CopyArgument(0, "Function", function.ToQualifiedCString());
#endif // defined(DEBUG)
#endif // !defined(PRODUCT)

const intptr_t node_offset = function.kernel_offset();
Expand Down

0 comments on commit 50a3460

Please sign in to comment.