ATLAS Offline Software
Control
AthenaMonitoringKernel
src
MonitoredTimer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AthenaMonitoringKernel/MonitoredTimer.h
"
6
#include <stdexcept>
7
#include <string_view>
8
9
namespace
Monitored
{
10
void
checkNamingConvention
( std::string_view
name
) {
11
// Enforce some naming convention for timers
12
if
(
name
.substr(0,5) !=
"TIME_"
) {
13
std::string
error
(
"Name of Timer \""
);
14
error
+=
name
;
15
error
+=
"\" needs to start with \"TIME_\""
;
16
throw
std::runtime_error(
error
);
17
}
18
}
19
20
}
// namespace Monitored
Monitored::checkNamingConvention
void checkNamingConvention(std::string_view name)
Definition:
MonitoredTimer.cxx:10
MonitoredTimer.h
Monitored
Generic monitoring tool for athena components.
Definition:
GenericMonitoringTool.h:30
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
get_generator_info.error
error
Definition:
get_generator_info.py:40
error
Definition:
IImpactPoint3dEstimator.h:70
Generated on Sun Dec 22 2024 21:14:40 for ATLAS Offline Software by
1.8.18