#include <profiler.h>
Definition at line 540 of file profiler.h.
◆ CodeLookupTable()
dart::CodeLookupTable::CodeLookupTable |
( |
Thread * |
thread | ) |
|
|
explicit |
Definition at line 1478 of file profiler.cc.
1478 {
1479 Build(thread);
1480}
◆ At()
const CodeDescriptor * dart::CodeLookupTable::At |
( |
intptr_t |
index | ) |
const |
|
inline |
Definition at line 546 of file profiler.h.
546 {
547 return code_objects_.At(index);
548 }
◆ FindCode()
Definition at line 1550 of file profiler.cc.
1550 {
1551 intptr_t first = 0;
1554 intptr_t current = first;
1557 const CodeDescriptor* cd =
At(current);
1558 if (pc >= cd->Start()) {
1559 first = ++current;
1561 } else {
1563 }
1564 }
1565
1566
1567 if (first == 0) {
1568 return nullptr;
1569 }
1570 first--;
1573 const CodeDescriptor* cd =
At(first);
1574 if (cd->Contains(pc)) {
1575 return cd;
1576 }
1577 return nullptr;
1578}
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 544 of file profiler.h.
544{ return code_objects_.length(); }
◆ CodeLookupTableBuilder
The documentation for this class was generated from the following files: