#include <string>
#include <vector>
#include <msp/time/timedelta.h>
+#include <msp/time/timestamp.h>
namespace Msp {
namespace Debug {
class Profiler
{
public:
+ struct CallInfo
+ {
+ Msp::Time::TimeStamp entry_time;
+ Msp::Time::TimeDelta duration;
+ };
+
struct ScopeInfo
{
+ Time::TimeStamp first_call;
unsigned calls;
Time::TimeDelta total_time;
Time::TimeDelta self_time;
Time::TimeDelta avg_time;
- std::vector<Time::TimeDelta> history;
+ float calls_per_sec;
+ std::vector<CallInfo> history;
unsigned hist_pos;
+ bool hist_full;
std::map<std::string, unsigned> called_from;
ScopeInfo();