Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ProfileFunctionSourcePosition Class Reference

#include <profiler_service.h>

Public Member Functions

 ProfileFunctionSourcePosition (TokenPosition token_pos)
 
void Tick (bool exclusive)
 
TokenPosition token_pos () const
 
intptr_t exclusive_ticks () const
 
intptr_t inclusive_ticks () const
 

Detailed Description

Definition at line 42 of file profiler_service.h.

Constructor & Destructor Documentation

◆ ProfileFunctionSourcePosition()

dart::ProfileFunctionSourcePosition::ProfileFunctionSourcePosition ( TokenPosition  token_pos)
explicit

Definition at line 44 of file profiler_service.cc.

46 : token_pos_(token_pos), exclusive_ticks_(0), inclusive_ticks_(0) {}

Member Function Documentation

◆ exclusive_ticks()

intptr_t dart::ProfileFunctionSourcePosition::exclusive_ticks ( ) const
inline

Definition at line 49 of file profiler_service.h.

49{ return exclusive_ticks_; }

◆ inclusive_ticks()

intptr_t dart::ProfileFunctionSourcePosition::inclusive_ticks ( ) const
inline

Definition at line 50 of file profiler_service.h.

50{ return inclusive_ticks_; }

◆ Tick()

void dart::ProfileFunctionSourcePosition::Tick ( bool  exclusive)

Definition at line 48 of file profiler_service.cc.

48 {
49 if (exclusive) {
50 exclusive_ticks_++;
51 } else {
52 inclusive_ticks_++;
53 }
54}

◆ token_pos()

TokenPosition dart::ProfileFunctionSourcePosition::token_pos ( ) const
inline

Definition at line 48 of file profiler_service.h.

48{ return token_pos_; }

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