{"id":13730747,"url":"https://github.com/Krozark/monitoring","last_synced_at":"2025-05-08T03:31:38.250Z","repository":{"id":13989759,"uuid":"16690820","full_name":"Krozark/monitoring","owner":"Krozark","description":"a lib to determine CPU /memory consumption.","archived":true,"fork":false,"pushed_at":"2015-02-20T10:16:43.000Z","size":1868,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T02:09:48.112Z","etag":null,"topics":["monitoring"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Krozark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-10T09:40:40.000Z","updated_at":"2023-01-28T20:23:07.000Z","dependencies_parsed_at":"2022-09-09T08:41:55.753Z","dependency_job_id":null,"html_url":"https://github.com/Krozark/monitoring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krozark%2Fmonitoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krozark%2Fmonitoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krozark%2Fmonitoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krozark%2Fmonitoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krozark","download_url":"https://codeload.github.com/Krozark/monitoring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224695688,"owners_count":17354457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["monitoring"],"created_at":"2024-08-03T02:01:18.911Z","updated_at":"2024-11-14T21:31:32.642Z","avatar_url":"https://github.com/Krozark.png","language":"C","readme":"monitoring\n==========\n\na lib to determine CPU /memory consumption.\n\n\nCurrent build status: [![Build Status](https://travis-ci.org/Krozark/monitoring.png?branch=master)](https://travis-ci.org/Krozark/monitoring)\n\nBuild\n=====\n\nUse cmake to build the lib.\n\n\nTesting\n=======\n\nUbuntu 12.04+ x86/32\nWindows xp x86\n\n\nExamples\n========\n\nMake a look to files in examples directory to see them.\n\n\nDoc\n===\n\nYou can build the documentation using doxygen, or \"make doc\"\n\n\nUsage\n=====\n\nAll class are under the sys namespace.\n\nYou can use them by include \n```c++\n    \u003cMonitoring/sys.hpp\u003e //All files\n    //or\n    \u003cMonitoring/Cpu.hpp\u003e\n    \u003cMonitoring/Physical.hpp\u003e\n    \u003cMonitoring/Virtual.hpp\u003e\n```\n\n\nsys\n---\n\n```c++\n    SYS_64BIT //defined is the OS is 64 bits\n    SYS_32BIT ///defined is the os is 32 bits\n\n    std::string osName();\n    std::string osNameBit();\n    int osBit();\n    bool checkBit();\n```\n\n\nsys::Cpu\n--------\n\n```c++\n    static int processors();\n    static double used(); //in %\n    static double usedByProc(); //in %\n```\n\n\nsys::memory::Physical\n---------------------\n\n```c++\n    static uint64_t total();\n    static uint64_t used();\n    static uint64_t usedByProc();\n```\n\nsys::memory::Virtual\n--------------------\n\n```c++\n    static uint64_t total();\n    static uint64_t used();\n    static uint64_t usedByProc();\n```\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKrozark%2Fmonitoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKrozark%2Fmonitoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKrozark%2Fmonitoring/lists"}