Apollo  6.0
Open source self driving car software
Classes | Namespaces | Macros | Functions
perf_util.h File Reference
#include <string>
#include "absl/strings/str_cat.h"
#include "cyber/common/macros.h"
#include "cyber/time/time.h"
Include dependency graph for perf_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  apollo::common::util::Timer
 
class  apollo::common::util::TimerWrapper
 

Namespaces

 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::common
 apollo::common
 
 apollo::common::util
 apollo::common::util
 

Macros

#define AFUNC   __func__
 
#define PERF_FUNCTION()
 
#define PERF_FUNCTION_WITH_NAME(func_name)   UNUSED(func_name);
 
#define PERF_FUNCTION_WITH_INDICATOR(indicator)   UNUSED(indicator);
 
#define PERF_BLOCK_START()
 
#define PERF_BLOCK_END(msg)   UNUSED(msg);
 
#define PERF_BLOCK_END_WITH_INDICATOR(indicator, msg)
 

Functions

std::string apollo::common::util::function_signature (const std::string &func_name, const std::string &indicator="")
 

Macro Definition Documentation

◆ AFUNC

#define AFUNC   __func__

◆ PERF_BLOCK_END

#define PERF_BLOCK_END (   msg)    UNUSED(msg);

◆ PERF_BLOCK_END_WITH_INDICATOR

#define PERF_BLOCK_END_WITH_INDICATOR (   indicator,
  msg 
)
Value:
{ \
UNUSED(indicator); \
UNUSED(msg); \
}

◆ PERF_BLOCK_START

#define PERF_BLOCK_START ( )

◆ PERF_FUNCTION

#define PERF_FUNCTION ( )

◆ PERF_FUNCTION_WITH_INDICATOR

#define PERF_FUNCTION_WITH_INDICATOR (   indicator)    UNUSED(indicator);

◆ PERF_FUNCTION_WITH_NAME

#define PERF_FUNCTION_WITH_NAME (   func_name)    UNUSED(func_name);