1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Detect power domains.

This commit is contained in:
Bartosz Taudul
2023-03-10 00:05:18 +01:00
parent 5e2e5eeefb
commit c3e7157cd5
2 changed files with 127 additions and 0 deletions
+18
View File
@@ -7,16 +7,34 @@
#ifdef TRACY_HAS_SYSPOWER
#include <stdint.h>
#include <stdio.h>
#include "TracyFastVector.hpp"
namespace tracy
{
class SysPower
{
struct Domain
{
uint64_t value;
uint64_t overflow;
FILE* handle;
const char* name;
};
public:
SysPower();
~SysPower();
void Tick();
private:
void ScanDirectory( const char* path, int parent );
FastVector<Domain> m_domains;
};
}