git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
David's final changes: more profiler features, fixes.
[ipdf/code.git]
/
src
/
profiler.h
diff --git
a/src/profiler.h
b/src/profiler.h
index
e406536
..
ffffae9
100644
(file)
--- a/
src/profiler.h
+++ b/
src/profiler.h
@@
-21,6
+21,8
@@
namespace IPDF
void EndFrame();
void Enable(bool enabled) { m_enabled = enabled; }
void EndFrame();
void Enable(bool enabled) { m_enabled = enabled; }
+
+ void AddCounter(std::string name, uint64_t amt);
private:
struct ProfileZone
{
private:
struct ProfileZone
{
@@
-33,6
+35,7
@@
namespace IPDF
};
std::map<std::string, ProfileZone> m_zones;
};
std::map<std::string, ProfileZone> m_zones;
+ std::map<std::string, uint64_t> m_counters;
std::stack<std::string> m_zone_stack;
bool m_enabled;
};
std::stack<std::string> m_zone_stack;
bool m_enabled;
};
UCC
git Repository :: git.ucc.asn.au