| 84 | #define LOG(level) std::cerr << "\n" |
| 85 | |
| 86 | static 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 | |
| 95 | namespace { |
| 96 | template<typename T> class scoped_array { |
no test coverage detected