Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
dart::CodeDescriptor Class Reference

#include <profiler.h>

Inheritance diagram for dart::CodeDescriptor:
dart::ZoneAllocated

Public Member Functions

 CodeDescriptor (const AbstractCode code)
 
uword Start () const
 
uword Size () const
 
int64_t CompileTimestamp () const
 
const AbstractCode code () const
 
const char * Name () const
 
bool Contains (uword pc) const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Static Public Member Functions

static int Compare (CodeDescriptor *const *a, CodeDescriptor *const *b)
 

Detailed Description

Definition at line 505 of file profiler.h.

Constructor & Destructor Documentation

◆ CodeDescriptor()

dart::CodeDescriptor::CodeDescriptor ( const AbstractCode  code)
explicit

Definition at line 1458 of file profiler.cc.

1458: code_(code) {}
const AbstractCode code() const
Definition profiler.h:515

Member Function Documentation

◆ code()

const AbstractCode dart::CodeDescriptor::code ( ) const
inline

Definition at line 515 of file profiler.h.

515{ return code_; }

◆ Compare()

static int dart::CodeDescriptor::Compare ( CodeDescriptor *const *  a,
CodeDescriptor *const *  b 
)
inlinestatic

Definition at line 524 of file profiler.h.

524 {
525 ASSERT(a != nullptr);
526 ASSERT(b != nullptr);
527
528 uword a_start = (*a)->Start();
529 uword b_start = (*b)->Start();
530
531 if (a_start < b_start) {
532 return -1;
533 } else if (a_start > b_start) {
534 return 1;
535 } else {
536 return 0;
537 }
538 }
#define ASSERT(E)
static bool b
struct MyStruct a[10]
uintptr_t uword
Definition globals.h:501

◆ CompileTimestamp()

int64_t dart::CodeDescriptor::CompileTimestamp ( ) const

Definition at line 1468 of file profiler.cc.

1468 {
1469 return code_.compile_timestamp();
1470}
int64_t compile_timestamp() const
Definition profiler.h:432

◆ Contains()

bool dart::CodeDescriptor::Contains ( uword  pc) const
inline

Definition at line 519 of file profiler.h.

519 {
520 uword end = Start() + Size();
521 return (pc >= Start()) && (pc < end);
522 }
uword Start() const
Definition profiler.cc:1460
uword Size() const
Definition profiler.cc:1464
glong glong end

◆ Name()

const char * dart::CodeDescriptor::Name ( ) const
inline

Definition at line 517 of file profiler.h.

517{ return code_.Name(); }
const char * Name() const
Definition profiler.h:440

◆ Size()

uword dart::CodeDescriptor::Size ( ) const

Definition at line 1464 of file profiler.cc.

1464 {
1465 return code_.Size();
1466}
uword Size() const
Definition profiler.h:427

◆ Start()

uword dart::CodeDescriptor::Start ( ) const

Definition at line 1460 of file profiler.cc.

1460 {
1461 return code_.PayloadStart();
1462}
uword PayloadStart() const
Definition profiler.h:422

The documentation for this class was generated from the following files: