diff options
author | Jakob P. Liljenberg <admin@qvantnet.com> | 2024-01-03 16:34:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 16:34:01 +0100 |
commit | ef788efc536733a441949dab854b0a6bea5ef33e (patch) | |
tree | 4a27a7212369425705973fc29f9c8feff00b00ba /src/btop_shared.cpp | |
parent | c90e3f9b1508f55d281495468297df409f974eb0 (diff) | |
parent | a29545c4079e9bc5203e09965ac03fabe975bd7e (diff) |
Merge branch 'main' into lldb-term-size
Diffstat (limited to 'src/btop_shared.cpp')
-rw-r--r-- | src/btop_shared.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/btop_shared.cpp b/src/btop_shared.cpp index 98c24ce..b159a97 100644 --- a/src/btop_shared.cpp +++ b/src/btop_shared.cpp @@ -25,6 +25,18 @@ tab-size = 4 namespace rng = std::ranges; using namespace Tools; +#ifdef GPU_SUPPORT +namespace Gpu { + vector<string> gpu_names; + vector<int> gpu_b_height_offsets; + std::unordered_map<string, deque<long long>> shared_gpu_percent = { + {"gpu-average", {}}, + {"gpu-vram-total", {}}, + {"gpu-pwr-total", {}}, + }; + long long gpu_pwr_total_max; +} +#endif namespace Proc { void proc_sorter(vector<proc_info>& proc_vec, const string& sorting, bool reverse, bool tree) { |