Changeset 72360 in webkit for trunk/JavaScriptCore/bytecode/SamplingTool.cpp
- Timestamp:
- Nov 18, 2010, 6:35:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/SamplingTool.cpp
r65344 r72360 338 338 if (blockPercent >= 1) { 339 339 //Instruction* code = codeBlock->instructions().begin(); 340 printf("#%d: %s:%d: %d / %lld (%.3f%%)\n", i + 1, record->m_executable->sourceURL().utf8().data(), codeBlock->lineNumberForBytecodeOffset( exec,0), record->m_sampleCount, m_sampleCount, blockPercent);340 printf("#%d: %s:%d: %d / %lld (%.3f%%)\n", i + 1, record->m_executable->sourceURL().utf8().data(), codeBlock->lineNumberForBytecodeOffset(0), record->m_sampleCount, m_sampleCount, blockPercent); 341 341 if (i < 10) { 342 342 HashMap<unsigned,unsigned> lineCounts; … … 348 348 if (count) { 349 349 printf(" [% 4d] has sample count: % 4d\n", op, count); 350 unsigned line = codeBlock->lineNumberForBytecodeOffset( exec,op);350 unsigned line = codeBlock->lineNumberForBytecodeOffset(op); 351 351 lineCounts.set(line, (lineCounts.contains(line) ? lineCounts.get(line) : 0) + count); 352 352 }
Note:
See TracChangeset
for help on using the changeset viewer.