mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-15 22:20:05 +00:00
Prefix the debug statistics so they group together.
llvm-svn: 21583
This commit is contained in:
parent
27f80b8c96
commit
e3b60245eb
@ -104,6 +104,7 @@ namespace {
|
|||||||
private:
|
private:
|
||||||
const char* func_name;
|
const char* func_name;
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
std::string stat_name;
|
||||||
Statistic<> activations;
|
Statistic<> activations;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -115,7 +116,8 @@ namespace {
|
|||||||
CallOptimizer::CallOptimizer(const char* fname)
|
CallOptimizer::CallOptimizer(const char* fname)
|
||||||
: func_name(fname)
|
: func_name(fname)
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
, activations(fname,"Number of calls simplified")
|
, stat_name(std::string("simplify-libcalls:")+fname)
|
||||||
|
, activations(stat_name.c_str(),"Number of calls simplified")
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// Register this call optimizer
|
// Register this call optimizer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user