CGraph
Protected Member Functions | Private Attributes | Friends | List of all members
GPerfAspect< Args > Class Template Reference

预先写好的用于做性能分析的切面 More...

#include <GPerfAspect.h>

Inheritance diagram for GPerfAspect< Args >:
Inheritance graph
[legend]
Collaboration diagram for GPerfAspect< Args >:
Collaboration graph
[legend]

Protected Member Functions

 GPerfAspect (CFMSec startTs, GPerfInfoPtr perfInfo)
 
CStatus beginRun () final
 
CVoid finishRun (const CStatus &curStatus) final
 
- Protected Member Functions inherited from GAspectObject
 GAspectObject ()
 
 ~GAspectObject () override
 
template<typename T , c_enable_if_t< std::is_base_of< GAspectParam, T >::value, int > = 0>
T * getAParam ()
 
template<typename T , c_enable_if_t< std::is_base_of< GAspectParam, T >::value, int > = 0>
GAspectObjectsetAParam (T *param)
 
GAspectObjectsetBelong (GElement *belong)
 
const std::string & getName () const override
 

Private Attributes

CFMSec pipeline_start_ts_ = 0.0
 
CFMSec cur_start_ts_ = 0.0
 
GPerfInfoPtr perf_info_ = nullptr
 

Friends

class CAllocator
 

Additional Inherited Members

- Public Member Functions inherited from GAspect
virtual CStatus beginInit ()
 
virtual CVoid finishInit (const CStatus &curStatus)
 
virtual CStatus beginDestroy ()
 
virtual CVoid finishDestroy (const CStatus &curStatus)
 
virtual CVoid enterCrashed ()
 
- Public Member Functions inherited from GAspectObject
template<typename T , c_enable_if_t< std::is_base_of< GAspectParam, T >::value, int > >
CGRAPH_NAMESPACE_BEGIN GAspectObjectPtr setAParam (T *param)
 
- Public Member Functions inherited from CObject
 CObject ()=default
 
virtual CStatus init ()
 
virtual CStatus destroy ()
 
virtual ~CObject ()=default
 
- Public Member Functions inherited from CDescInfo
const std::string & getSession () const
 
const std::string & getDescription () const
 
virtual auto setName (const std::string &name) -> decltype(this)
 
virtual auto setDescription (const std::string &description) -> decltype(this)
 
virtual ~CDescInfo ()=default
 
- Protected Attributes inherited from CDescInfo
std::string name_
 
std::string session_
 
std::string description_
 

Detailed Description

template<typename ... Args>
class GPerfAspect< Args >

预先写好的用于做性能分析的切面

Template Parameters
Args

Constructor & Destructor Documentation

◆ GPerfAspect()

template<typename ... Args>
GPerfAspect< Args >::GPerfAspect ( CFMSec  startTs,
GPerfInfoPtr  perfInfo 
)
inlineexplicitprotected

Member Function Documentation

◆ beginRun()

template<typename ... Args>
CStatus GPerfAspect< Args >::beginRun ( )
inlinefinalprotectedvirtual

run()函数切面开始期间动作

Reimplemented from GAspect.

Here is the call graph for this function:

◆ finishRun()

template<typename ... Args>
CVoid GPerfAspect< Args >::finishRun ( const CStatus curStatus)
inlinefinalprotectedvirtual

run()函数切面结束期间动作

Parameters
curStatus

Reimplemented from GAspect.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ CAllocator

template<typename ... Args>
friend class CAllocator
friend

Member Data Documentation

◆ cur_start_ts_

template<typename ... Args>
CFMSec GPerfAspect< Args >::cur_start_ts_ = 0.0
private

◆ perf_info_

template<typename ... Args>
GPerfInfoPtr GPerfAspect< Args >::perf_info_ = nullptr
private

◆ pipeline_start_ts_

template<typename ... Args>
CFMSec GPerfAspect< Args >::pipeline_start_ts_ = 0.0
private

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