MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / serialize

Function serialize

runtime/Perf.cc:1120–1128  ·  view source on GitHub ↗

Measure the cost of cpuid

Source from the content-addressed store, hash-verified

1118
1119// Measure the cost of cpuid
1120double serialize() {
1121 int count = 1000000;
1122 uint64_t start = Cycles::rdtsc();
1123 for (int i = 0; i < count; i++) {
1124 Util::serialize();
1125 }
1126 uint64_t stop = Cycles::rdtsc();
1127 return Cycles::toSeconds(stop - start)/count;
1128}
1129
1130double cond_wait_for_millisecond() {
1131 int count = 100;

Callers 4

snprintfFileLocationFunction · 0.70
snprintfTimeFunction · 0.70
snprintStatic100CharFunction · 0.70
snprintfRAMCloudFunction · 0.70

Calls 1

rdtscFunction · 0.85

Tested by

no test coverage detected