Definition at line 284 of file profiler_test.cc.
◆ ProfileStackWalker()
dart::ProfileStackWalker::ProfileStackWalker |
( |
Profile * |
profile, |
|
|
bool |
as_func = false |
|
) |
| |
|
inlineexplicit |
Definition at line 286 of file profiler_test.cc.
288 as_functions_(as_func),
289 index_(0),
290 sample_(
profile->SampleAt(0)) {
291 ClearInliningData();
292 }
◆ CurrentExclusiveTicks()
intptr_t dart::ProfileStackWalker::CurrentExclusiveTicks |
( |
| ) |
|
|
inline |
Definition at line 361 of file profiler_test.cc.
361 {
362 if (as_functions_) {
363 ProfileFunction* func = GetFunction();
365 return func->exclusive_ticks();
366 } else {
367 ProfileCode*
code = GetCode();
369 return code->exclusive_ticks();
370 }
371 }
◆ CurrentInclusiveTicks()
intptr_t dart::ProfileStackWalker::CurrentInclusiveTicks |
( |
| ) |
|
|
inline |
Definition at line 349 of file profiler_test.cc.
349 {
350 if (as_functions_) {
351 ProfileFunction* func = GetFunction();
353 return func->inclusive_ticks();
354 } else {
355 ProfileCode*
code = GetCode();
357 return code->inclusive_ticks();
358 }
359 }
◆ CurrentName()
const char * dart::ProfileStackWalker::CurrentName |
( |
| ) |
|
|
inline |
Definition at line 303 of file profiler_test.cc.
303 {
304 if (as_functions_) {
305 ProfileFunction* func = GetFunction();
307 return func->Name();
308 } else {
309 ProfileCode*
code = GetCode();
312 }
313 }
◆ CurrentToken()
const char * dart::ProfileStackWalker::CurrentToken |
( |
| ) |
|
|
inline |
Definition at line 315 of file profiler_test.cc.
315 {
316 if (!as_functions_) {
317 return nullptr;
318 }
319 ProfileFunction* func = GetFunction();
320 const Function&
function = *(func->function());
322
323 return nullptr;
324 }
328
329 return nullptr;
330 }
331 ProfileFunctionSourcePosition pfsp(TokenPosition::kNoSource);
332 if (!func->GetSinglePosition(&pfsp)) {
333
334 return nullptr;
335 }
336
337 const TokenPosition& token_pos = pfsp.token_pos();
338 intptr_t
line, column;
339 if (
script.GetTokenLocation(token_pos, &
line, &column)) {
340 const intptr_t token_len =
script.GetTokenLength(token_pos);
343 if (!str.IsNull()) return str.ToCString();
344 }
345
346 return nullptr;
347 }
static Thread * Current()
Dart_NativeFunction function
◆ Down()
bool dart::ProfileStackWalker::Down |
( |
| ) |
|
|
inline |
Definition at line 294 of file profiler_test.cc.
294 {
295 if (as_functions_) {
296 return UpdateFunctionIndex();
297 } else {
298 ++index_;
299 return (index_ < sample_->
length());
300 }
301 }
◆ VMTagName()
const char * dart::ProfileStackWalker::VMTagName |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: