MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / sort

Method sort

src/codeCache.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void CodeCache::sort() {
106 if (_count == 0) return;
107
108 qsort(_blobs, _count, sizeof(CodeBlob), CodeBlob::comparator);
109
110 if (_min_address == NO_MIN_ADDRESS) _min_address = _blobs[0]._start;
111 if (_max_address == NO_MAX_ADDRESS) _max_address = _blobs[_count - 1]._end;
112}
113
114CodeBlob* CodeCache::findBlob(const char* name) {
115 for (int i = 0; i < _count; i++) {

Callers 11

parseLibrariesMethod · 0.80
parseLibrariesMethod · 0.80
samplesMethod · 0.80
HuffmanEncoderMethod · 0.80
printMethodsMethod · 0.80
calculateSynonymsMethod · 0.80
readAllEventsMethod · 0.80
afterChunkMethod · 0.80
printCpoolMethod · 0.80
printFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected