コード例 #1
0
ファイル: Utility.hpp プロジェクト: lieff/GIGL
// Print warnings/errors to stderr (printf syntax)
static inline void printError(const char* const fmt, ...) {
    va_list args;
    va_start(args, fmt);
    printInternal(stderr, fmt, args);
    va_end(args);
    fputs("\n", stderr);
}
コード例 #2
0
ファイル: CacheTrace.cpp プロジェクト: PlatformLab/PerfUtils
/**
 * Print all existing trace records to the system log.
 */
void CacheTrace::print()
{
    printInternal(NULL);
}
コード例 #3
0
ファイル: CacheTrace.cpp プロジェクト: PlatformLab/PerfUtils
/**
 * Return a string containing a printout of the records in the trace.
 */
std::string CacheTrace::getTrace()
{
    std::string s;
    printInternal(&s);
    return s;
}