Changeset 43087 in webkit for trunk/JavaScriptCore/bytecode/SamplingTool.cpp
- Timestamp:
- Apr 30, 2009, 2:02:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/SamplingTool.cpp
r43047 r43087 67 67 total += s_flagCounts[i]; 68 68 69 printf("SamplingFlags: sample count with flags set:\n"); 70 for (unsigned i = 0; i <= 32; ++i) 71 printf(" [ %02d ] : %lld\t\t(%03.2f%%)\n", i, s_flagCounts[i], (100.0 * s_flagCounts[i]) / total); 72 printf("\n\n"); 69 if (total) { 70 printf("\nSamplingFlags: sample counts with flags set: (%lld total)\n", total); 71 for (unsigned i = 0; i <= 32; ++i) { 72 if (s_flagCounts[i]) 73 printf(" [ %02d ] : %lld\t\t(%03.2f%%)\n", i, s_flagCounts[i], (100.0 * s_flagCounts[i]) / total); 74 } 75 printf("\n"); 76 } else 77 printf("\nSamplingFlags: no samples.\n\n"); 73 78 } 74 79 uint64_t SamplingFlags::s_flagCounts[33];
Note:
See TracChangeset
for help on using the changeset viewer.