| 6 | namespace |
| 7 | { |
| 8 | CcpStaticStatisticsEntry* GetOrCreateStatisticsEntry( const std::string& name ) |
| 9 | { |
| 10 | auto& entries = CcpStatistics::GetEntryArray(); |
| 11 | for( auto it = entries.begin(); it != entries.end(); ++it ) |
| 12 | { |
| 13 | if( ( *it )->GetName() == name ) |
| 14 | { |
| 15 | return *it; |
| 16 | } |
| 17 | } |
| 18 | return BlueStatistics::CreateDynamicEntry( name.c_str(), false, CST_TIME, "" ); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // ------------------------------------------------------------- |