-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTracker.h
36 lines (26 loc) · 1.15 KB
/
Tracker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/******************************************************************************
* *
* Program : FileLogger *
* *
* Date : 15 / 04 / 2021 *
* *
* Programmer : Nikita Seliverstov (nikselko) *
* *
* *
******************************************************************************/
#pragma once
#include "includes.h"
class Tracker
{
public:
Tracker();
void add_instance();
void remove_instance();
void add_memory(std::size_t memory);
void remove_memory(std::size_t memory);
std::size_t memory() const;
std::size_t instances() const;
private:
std::size_t m_instance_count;
std::size_t m_memory_count;
};