Changeset 39070 in webkit for trunk/JavaScriptCore/bytecode/SamplingTool.cpp
- Timestamp:
- Dec 6, 2008, 2:01:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/SamplingTool.cpp
r38523 r39070 43 43 { 44 44 if (!m_samples) { 45 m_size = codeBlock->instructions .size();45 m_size = codeBlock->instructions().size(); 46 46 m_samples = static_cast<int*>(calloc(m_size, sizeof(int))); 47 47 m_codeBlock = codeBlock; … … 50 50 ++m_sampleCount; 51 51 52 unsigned offest = vPC - codeBlock->instructions .begin();52 unsigned offest = vPC - codeBlock->instructions().begin(); 53 53 // Since we don't read and write codeBlock and vPC atomically, this check 54 54 // can fail if we sample mid op_call / op_ret. … … 249 249 250 250 if (blockPercent >= 1) { 251 Instruction* code = codeBlock->instructions .begin();251 Instruction* code = codeBlock->instructions().begin(); 252 252 printf("#%d: %s:%d: %d / %lld (%.3f%%)\n", i + 1, record->m_scope->sourceURL().UTF8String().c_str(), codeBlock->lineNumberForVPC(code), record->m_sampleCount, m_sampleCount, blockPercent); 253 253 if (i < 10) {
Note:
See TracChangeset
for help on using the changeset viewer.