Project
Loading...
Searching...
No Matches
DeviceMetricsInfo.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#include "
Framework/DeviceMetricsInfo.h
"
13
#include "
Framework/RuntimeError.h
"
14
#include <cassert>
15
#include <cinttypes>
16
#include <cstdlib>
17
18
#include <algorithm>
19
#include <regex>
20
#include <string_view>
21
#include <tuple>
22
#include <iostream>
23
24
namespace
o2::framework
25
{
26
27
std::ostream&
operator<<
(std::ostream& oss,
MetricType
const
&
val
)
28
{
29
switch
(
val
) {
30
case
MetricType::Float
:
31
oss <<
"float"
;
32
break
;
33
case
MetricType::String
:
34
oss <<
"string"
;
35
break
;
36
case
MetricType::Int
:
37
oss <<
"int"
;
38
break
;
39
case
MetricType::Uint64
:
40
oss <<
"uint64"
;
41
break
;
42
case
MetricType::Enum
:
43
oss <<
"enum"
;
44
break
;
45
case
MetricType::Unknown
:
46
default
:
47
oss <<
"undefined"
;
48
break
;
49
};
50
return
oss;
51
}
52
53
}
// namespace o2::framework
DeviceMetricsInfo.h
RuntimeError.h
val
GLuint GLfloat * val
Definition
glcorearb.h:1582
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::operator<<
std::ostream & operator<<(std::ostream &s, ChannelType const &type)
Stream operators so that we can use ChannelType with Boost.Test.
Definition
ChannelSpecHelpers.cxx:192
o2::framework::MetricType
MetricType
Definition
DeviceMetricsInfo.h:28
o2::framework::MetricType::Int
@ Int
o2::framework::MetricType::Float
@ Float
o2::framework::MetricType::String
@ String
o2::framework::MetricType::Unknown
@ Unknown
o2::framework::MetricType::Uint64
@ Uint64
o2::framework::MetricType::Enum
@ Enum
Framework
Core
src
DeviceMetricsInfo.cxx
Generated on Tue Feb 25 2025 17:03:21 for Project by
1.9.8