#include <profiler.h>
Definition at line 547 of file profiler.h.
◆ CodeLookupTable()
dart::CodeLookupTable::CodeLookupTable |
( |
Thread * |
thread | ) |
|
|
explicit |
Definition at line 1472 of file profiler.cc.
1472 {
1473 Build(thread);
1474}
◆ At()
const CodeDescriptor * dart::CodeLookupTable::At |
( |
intptr_t |
index | ) |
const |
|
inline |
Definition at line 553 of file profiler.h.
553 {
554 return code_objects_.At(index);
555 }
◆ FindCode()
Definition at line 1544 of file profiler.cc.
1544 {
1545 intptr_t first = 0;
1548 intptr_t current = first;
1551 const CodeDescriptor* cd =
At(current);
1552 if (pc >= cd->Start()) {
1553 first = ++current;
1555 } else {
1557 }
1558 }
1559
1560
1561 if (first == 0) {
1562 return nullptr;
1563 }
1564 first--;
1567 const CodeDescriptor* cd =
At(first);
1568 if (cd->Contains(pc)) {
1569 return cd;
1570 }
1571 return nullptr;
1572}
static int step(int x, SkScalar min, SkScalar max)
const CodeDescriptor * At(intptr_t index) const
◆ length()
intptr_t dart::CodeLookupTable::length |
( |
| ) |
const |
|
inline |
Definition at line 551 of file profiler.h.
551{ return code_objects_.length(); }
◆ CodeLookupTableBuilder
The documentation for this class was generated from the following files: