Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
dart::ProfileBuilder Class Reference
Inheritance diagram for dart::ProfileBuilder:
dart::ValueObject

Public Types

enum  ProfileInfoKind {
  kNone , kOptimized , kUnoptimized , kNative ,
  kInlineStart , kInlineFinish , kNumProfileInfoKind
}
 

Public Member Functions

 ProfileBuilder (Thread *thread, Isolate *isolate, SampleFilter *filter, SampleBlockBuffer *sample_buffer, Profile *profile)
 
void Build ()
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 936 of file profiler_service.cc.

Member Enumeration Documentation

◆ ProfileInfoKind

Enumerator
kNone 
kOptimized 
kUnoptimized 
kNative 
kInlineStart 
kInlineFinish 
kNumProfileInfoKind 

Definition at line 938 of file profiler_service.cc.

Constructor & Destructor Documentation

◆ ProfileBuilder()

dart::ProfileBuilder::ProfileBuilder ( Thread thread,
Isolate isolate,
SampleFilter filter,
SampleBlockBuffer sample_buffer,
Profile profile 
)
inline

Definition at line 948 of file profiler_service.cc.

953 : thread_(thread),
954 isolate_(isolate),
955 vm_isolate_(Dart::vm_isolate()),
956 filter_(filter),
957 sample_buffer_(sample_buffer),
958 profile_(profile),
959 null_code_(Code::null()),
960 null_function_(Function::ZoneHandle()),
961 inclusive_tree_(false),
962 inlined_functions_cache_(new ProfileCodeInlinedFunctionsCache()),
963 samples_(nullptr),
964 info_kind_(kNone) {
965 ASSERT(profile_ != nullptr);
966 }
static Isolate * vm_isolate()
Definition: dart.h:68
static ObjectPtr null()
Definition: object.h:433
static Object & ZoneHandle()
Definition: object.h:419
#define ASSERT(E)

Member Function Documentation

◆ Build()

void dart::ProfileBuilder::Build ( )
inline

Definition at line 968 of file profiler_service.cc.

968 {
969 ScopeTimer sw("ProfileBuilder::Build", FLAG_trace_profiler);
970 if (!FilterSamples()) {
971 return;
972 }
973 Setup();
974 BuildCodeTable();
975 FinalizeCodeIndexes();
976 BuildFunctionTable();
977 PopulateFunctionTicks();
978 SanitizeMinMaxTimes();
979 }

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