mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Profiling added
This commit is contained in:
parent
3f4bd13091
commit
a6f78134c0
7 changed files with 59 additions and 6 deletions
29
Profiling.h
Normal file
29
Profiling.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue