MCPcopy Create free account
hub / github.com/beefytech/Beef / StringPrintf

Function StringPrintf

BeefRT/gperftools/src/tests/sampler_test.cc:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84#define LOG(level) std::cerr << "\n"
85
86static std::string StringPrintf(const char* format, ...) {
87 char buf[256]; // should be big enough for all logging
88 va_list ap;
89 va_start(ap, format);
90 perftools_vsnprintf(buf, sizeof(buf), format, ap);
91 va_end(ap);
92 return buf;
93}
94
95namespace {
96template<typename T> class scoped_array {

Callers 5

AndersonDarlingTestFunction · 0.70
ADTestTestFunction · 0.70
TestNextRandomFunction · 0.70
TestPickNextSampleFunction · 0.70
TESTFunction · 0.70

Calls 1

perftools_vsnprintfFunction · 0.50

Tested by

no test coverage detected