Profiling added

This commit is contained in:
orignal 2015-03-24 12:47:57 -04:00
parent 3f4bd13091
commit a6f78134c0
7 changed files with 59 additions and 6 deletions

29
Profiling.h Normal file
View file

@ -0,0 +1,29 @@
#ifndef PROFILING_H__
#define PROFILING_H__
#include <memory>
#include "Identity.h"
namespace i2p
{
namespace data
{
class RouterProfile
{
public:
RouterProfile (const IdentHash& identHash);
private:
IdentHash m_IdentHash;
// participation
uint32_t m_NumTunnelsAgreed;
uint32_t m_NumTunnelsDeclined;
};
std::shared_ptr<RouterProfile> GetProfile (const IdentHash& identHash);
}
}
#endif