Mercurial > minori
view dep/animia/test/main.cpp @ 93:d5efb81540b3
statistics: add graph!
also now we have a VERY VERY simple graph widget that probably
sucks and doesn't work half the time :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 13:52:34 -0400 |
parents | 4c6dd5999b39 |
children |
line wrap: on
line source
#include "animia.h" #include <iostream> int main() { /* getting all open files */ std::vector<int> pids = Animia::get_all_pids(); for (int i: pids) { if (Animia::get_process_name(i) == "mpc-hc64.exe") { std::vector<std::string> files = Animia::filter_system_files(Animia::get_open_files(i)); for (std::string s: files) { std::cout << Animia::get_process_name(i) << " (" << i << "): " << s << "\n"; } } } }