HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::module_identification::Statistics Struct Reference

#include </home/runner/work/hal/hal/plugins/module_identification/include/module_identification/utils/statistics.h>

Collaboration diagram for hal::module_identification::Statistics:
Collaboration graph

Public Member Functions

void add_stat (const BaseCandidate *bc, const FunctionalCandidate &oc)
 
void add_stat (const BaseCandidate *bc, const std::map< std::string, std::map< std::string, std::map< std::string, std::map< std::string, u64 >>>> &stats)
 
void print ()
 
std::string to_json (const u32 indent=0)
 

Public Attributes

std::map< const BaseCandidate *, std::map< std::string, std::map< std::string, std::map< std::string, std::map< std::string, u64 > > > > > m_data
 
std::mutex m_mutex
 

Detailed Description

Thread-safe collection of the statistics that are gathered while candidates are verified.

Definition at line 23 of file statistics.h.

Member Function Documentation

◆ add_stat() [1/2]

void hal::module_identification::Statistics::add_stat ( const BaseCandidate bc,
const FunctionalCandidate oc 
)
inline

◆ add_stat() [2/2]

void hal::module_identification::Statistics::add_stat ( const BaseCandidate bc,
const std::map< std::string, std::map< std::string, std::map< std::string, std::map< std::string, u64 >>>> &  stats 
)
inline

Definition at line 56 of file statistics.h.

References m_data, m_mutex, name, and type.

◆ print()

void hal::module_identification::Statistics::print ( )
inline

Definition at line 84 of file statistics.h.

References to_json().

◆ to_json()

std::string hal::module_identification::Statistics::to_json ( const u32  indent = 0)
inline

Definition at line 89 of file statistics.h.

References m_data, name, and type.

Referenced by print().

Member Data Documentation

◆ m_data

std::map<const BaseCandidate*, std::map<std::string, std::map<std::string, std::map<std::string, std::map<std::string, u64> > > > > hal::module_identification::Statistics::m_data

Definition at line 25 of file statistics.h.

Referenced by add_stat(), and to_json().

◆ m_mutex

std::mutex hal::module_identification::Statistics::m_mutex

Definition at line 26 of file statistics.h.

Referenced by add_stat().


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