grpc
third_party
benchmark
src
benchmark/src/colorprint.h
Go to the documentation of this file.
1
#ifndef BENCHMARK_COLORPRINT_H_
2
#define BENCHMARK_COLORPRINT_H_
3
4
#include <cstdarg>
5
#include <iostream>
6
#include <string>
7
8
namespace
benchmark
{
9
enum
LogColor
{
10
COLOR_DEFAULT
,
11
COLOR_RED
,
12
COLOR_GREEN
,
13
COLOR_YELLOW
,
14
COLOR_BLUE
,
15
COLOR_MAGENTA
,
16
COLOR_CYAN
,
17
COLOR_WHITE
18
};
19
20
std::string
FormatString
(
const
char
*
msg
, va_list
args
);
21
std::string
FormatString
(
const
char
*
msg
, ...);
22
23
void
ColorPrintf
(std::ostream&
out
,
LogColor
color,
const
char
*
fmt
,
24
va_list
args
);
25
void
ColorPrintf
(std::ostream&
out
,
LogColor
color,
const
char
*
fmt
, ...);
26
27
// Returns true if stdout appears to be a terminal that supports colored
28
// output, false otherwise.
29
bool
IsColorTerminal
();
30
31
}
// end namespace benchmark
32
33
#endif // BENCHMARK_COLORPRINT_H_
gen_build_yaml.out
dictionary out
Definition:
src/benchmark/gen_build_yaml.py:24
benchmark
Definition:
bm_alarm.cc:55
benchmark::LogColor
LogColor
Definition:
benchmark/src/colorprint.h:9
testing::internal::string
::std::string string
Definition:
bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
benchmark::COLOR_DEFAULT
@ COLOR_DEFAULT
Definition:
benchmark/src/colorprint.h:10
benchmark::FormatString
std::string FormatString(const char *msg, va_list args)
Definition:
benchmark/src/colorprint.cc:85
asyncio_get_stats.args
args
Definition:
asyncio_get_stats.py:40
benchmark::ColorPrintf
void ColorPrintf(std::ostream &out, LogColor color, const char *fmt,...)
Definition:
benchmark/src/colorprint.cc:121
benchmark::COLOR_YELLOW
@ COLOR_YELLOW
Definition:
benchmark/src/colorprint.h:13
benchmark::COLOR_MAGENTA
@ COLOR_MAGENTA
Definition:
benchmark/src/colorprint.h:15
benchmark::COLOR_RED
@ COLOR_RED
Definition:
benchmark/src/colorprint.h:11
benchmark::COLOR_CYAN
@ COLOR_CYAN
Definition:
benchmark/src/colorprint.h:16
benchmark::IsColorTerminal
bool IsColorTerminal()
Definition:
benchmark/src/colorprint.cc:158
msg
std::string msg
Definition:
client_interceptors_end2end_test.cc:372
benchmark::COLOR_GREEN
@ COLOR_GREEN
Definition:
benchmark/src/colorprint.h:12
benchmark::COLOR_WHITE
@ COLOR_WHITE
Definition:
benchmark/src/colorprint.h:17
testing::internal::fmt
GTEST_API_ const char * fmt
Definition:
bloaty/third_party/googletest/googletest/include/gtest/gtest.h:1808
benchmark::COLOR_BLUE
@ COLOR_BLUE
Definition:
benchmark/src/colorprint.h:14
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:58