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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user