#include <profiler_service.h>
Definition at line 232 of file profiler_service.h.
◆ Kind
Enumerator |
---|
kDartCode | |
kCollectedCode | |
kNativeCode | |
kReusedCode | |
kTagCode | |
Definition at line 234 of file profiler_service.h.
◆ ProfileCode()
Definition at line 252 of file profiler_service.cc.
260 exclusive_ticks_(0),
261 inclusive_ticks_(0),
262 inclusive_serial_(-1),
264 name_(nullptr),
265 compile_timestamp_(0),
266 function_(nullptr),
267 code_table_index_(-1),
268 address_ticks_(0) {
270}
const AbstractCode code() const
◆ code()
◆ code_table_index()
intptr_t dart::ProfileCode::code_table_index |
( |
| ) |
const |
|
inline |
◆ compile_timestamp()
int64_t dart::ProfileCode::compile_timestamp |
( |
| ) |
const |
|
inline |
◆ Contains()
bool dart::ProfileCode::Contains |
( |
uword |
pc | ) |
const |
|
inline |
◆ end()
uword dart::ProfileCode::end |
( |
| ) |
const |
|
inline |
◆ exclusive_ticks()
intptr_t dart::ProfileCode::exclusive_ticks |
( |
| ) |
const |
|
inline |
◆ ExpandLower()
void dart::ProfileCode::ExpandLower |
( |
uword |
start | ) |
|
◆ ExpandUpper()
void dart::ProfileCode::ExpandUpper |
( |
uword |
end | ) |
|
◆ function()
◆ GenerateAndSetSymbolName()
void dart::ProfileCode::GenerateAndSetSymbolName |
( |
const char * |
prefix | ) |
|
Definition at line 319 of file profiler_service.cc.
319 {
320 const intptr_t kBuffSize = 512;
321 char buff[kBuffSize];
325}
void SetName(const char *name)
static int SNPrint(char *str, size_t size, const char *format,...) PRINTF_ATTRIBUTE(3
◆ IncExclusiveTicks()
void dart::ProfileCode::IncExclusiveTicks |
( |
| ) |
|
|
inline |
◆ IncInclusiveTicks()
void dart::ProfileCode::IncInclusiveTicks |
( |
| ) |
|
|
inline |
◆ inclusive_ticks()
intptr_t dart::ProfileCode::inclusive_ticks |
( |
| ) |
const |
|
inline |
◆ IsOptimizedDart()
bool dart::ProfileCode::IsOptimizedDart |
( |
| ) |
const |
◆ kind()
Kind dart::ProfileCode::kind |
( |
| ) |
const |
|
inline |
◆ KindToCString()
const char * dart::ProfileCode::KindToCString |
( |
Kind |
kind | ) |
|
|
static |
Definition at line 441 of file profiler_service.cc.
441 {
444 return "Dart";
446 return "Collected";
448 return "Native";
450 return "Overwritten";
452 return "Tag";
453 }
455 return nullptr;
456}
◆ name()
const char * dart::ProfileCode::name |
( |
| ) |
const |
|
inline |
◆ Overlaps()
bool dart::ProfileCode::Overlaps |
( |
const ProfileCode * |
other | ) |
const |
Definition at line 300 of file profiler_service.cc.
300 {
302 return other->Contains(start_) || other->Contains(end_ - 1) ||
304}
bool Contains(uword pc) const
◆ PrintToJSONArray()
void dart::ProfileCode::PrintToJSONArray |
( |
JSONArray * |
codes | ) |
|
Definition at line 458 of file profiler_service.cc.
458 {
459 JSONObject obj(codes);
465 obj.AddProperty(
"code", *code_.
handle());
467 PrintCollectedCode(&obj);
469 PrintOverwrittenCode(&obj);
471 PrintTagCode(&obj);
472 } else {
474 PrintNativeCode(&obj);
475 }
476 {
477 JSONArray ticks(&obj, "ticks");
478 for (intptr_t
i = 0;
i < address_ticks_.length();
i++) {
479 const ProfileCodeAddress& entry = address_ticks_[
i];
480 ticks.AddValueF(
"%" Px "", entry.pc());
481 ticks.AddValue(entry.exclusive_ticks());
482 ticks.AddValue(entry.inclusive_ticks());
483 }
484 }
485}
const Object * handle() const
intptr_t inclusive_ticks() const
static const char * KindToCString(Kind kind)
intptr_t exclusive_ticks() const
◆ set_compile_timestamp()
void dart::ProfileCode::set_compile_timestamp |
( |
int64_t |
timestamp | ) |
|
|
inline |
◆ set_end()
void dart::ProfileCode::set_end |
( |
uword |
end | ) |
|
|
inline |
◆ set_exclusive_ticks()
void dart::ProfileCode::set_exclusive_ticks |
( |
intptr_t |
exclusive_ticks | ) |
|
|
inline |
◆ set_inclusive_ticks()
void dart::ProfileCode::set_inclusive_ticks |
( |
intptr_t |
inclusive_ticks | ) |
|
|
inline |
◆ set_start()
void dart::ProfileCode::set_start |
( |
uword |
start | ) |
|
|
inline |
◆ SetName()
void dart::ProfileCode::SetName |
( |
const char * |
name | ) |
|
Definition at line 310 of file profiler_service.cc.
310 {
311 if (
name ==
nullptr) {
312 name_ = nullptr;
313 }
314 intptr_t
len = strlen(
name) + 1;
317}
const char * name() const
static Thread * Current()
ElementType * Alloc(intptr_t length)
◆ start()
uword dart::ProfileCode::start |
( |
| ) |
const |
|
inline |
◆ TruncateLower()
void dart::ProfileCode::TruncateLower |
( |
uword |
start | ) |
|
◆ TruncateUpper()
void dart::ProfileCode::TruncateUpper |
( |
uword |
end | ) |
|
◆ ProfileBuilder
The documentation for this class was generated from the following files: