{"id":18416901,"url":"https://github.com/rpdevjesco/systemmonitoring","last_synced_at":"2026-07-15T20:02:36.389Z","repository":{"id":247692476,"uuid":"826584904","full_name":"RPDevJesco/SystemMonitoring","owner":"RPDevJesco","description":"A simple practice application to get better at writing C# wrappers for C++ code.","archived":false,"fork":false,"pushed_at":"2024-07-10T02:09:57.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T03:18:14.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RPDevJesco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T02:07:24.000Z","updated_at":"2024-07-10T02:10:00.000Z","dependencies_parsed_at":"2024-07-10T05:12:43.126Z","dependency_job_id":null,"html_url":"https://github.com/RPDevJesco/SystemMonitoring","commit_stats":null,"previous_names":["rpdevjesco/systemmonitoring"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RPDevJesco%2FSystemMonitoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RPDevJesco%2FSystemMonitoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RPDevJesco%2FSystemMonitoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RPDevJesco%2FSystemMonitoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RPDevJesco","download_url":"https://codeload.github.com/RPDevJesco/SystemMonitoring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657909,"owners_count":21140846,"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":[],"created_at":"2024-11-06T04:07:40.366Z","updated_at":"2025-10-17T09:18:09.325Z","avatar_url":"https://github.com/RPDevJesco.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# System Information Gatherer\n\nThe System Information Gatherer is a cross-platform project that provides comprehensive system information, including CPU, RAM, and GPU details. This project consists of a native C++ DLL and a C# wrapper to facilitate easy integration with .NET applications.\n\n## Features\n\n- Retrieve CPU name, core count, and usage statistics.\n- Retrieve operating system information.\n- Retrieve total and used RAM.\n- Retrieve GPU information.\n\n## Project Structure\n\n- `SystemInfo.hpp`: Header file defining the interface for the system information functions.\n- `SystemInfo.cpp`: Implementation of the system information functions for different platforms.\n- `SystemInfoWrapper.cs`: C# wrapper to provide access to the system information from .NET applications.\n- `Program.cs`: Example .NET console application demonstrating how to use the `SystemInfoWrapper` class.\n\n## Building the Project\n\n### Prerequisites\n\n- CMake\n- Visual Studio (for Windows)\n- A C++ compiler (e.g., GCC for Linux)\n- .NET SDK\n\n### Steps\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/yourusername/SystemInformationGatherer.git\n    cd SystemInformationGatherer\n    ```\n\n2. Build the native C++ DLL:\n\n    On Windows:\n    ```bash\n    mkdir build\n    cd build\n    cmake ..\n    cmake --build .\n    ```\n\n    On Linux:\n    ```bash\n    mkdir build\n    cd build\n    cmake ..\n    make\n    ```\n\n3. Build the C# wrapper and example application:\n\n    ```bash\n    cd ../SystemInfoSharp\n    dotnet build\n    ```\n\n## Usage\n\n### Using the C++ Library\n\nInclude the `SystemInfo.hpp` header in your C++ project and link against the compiled DLL.\n\n### Using the C# Wrapper\n\nAdd a reference to the `SystemInfoSharp` project or DLL in your .NET application. Then, use the `SystemInfoWrapper` class to retrieve system information.\n\nExample:\n\n```csharp\nusing System;\nusing SystemInfoSharp;\n\nclass Program\n{\n    static void Main(string[] args)\n    {\n        Console.WriteLine($\"CPU Name: {SystemInfoWrapper.CPUName}\");\n        var (physicalCores, logicalCores) = SystemInfoWrapper.CPUCores;\n        Console.WriteLine($\"CPU Cores: {physicalCores} physical, {logicalCores} logical\");\n        Console.WriteLine($\"OS Info: {SystemInfoWrapper.OSInfo}\");\n        Console.WriteLine($\"Total RAM: {SystemInfoWrapper.TotalRAM:F2} GB\");\n        Console.WriteLine($\"Used RAM: {SystemInfoWrapper.UsedRAM:F2} GB\");\n        Console.WriteLine(\"GPU Info:\");\n        Console.WriteLine(SystemInfoWrapper.GPUInfo);\n\n        var (totalCPUUsage, coreUsages) = SystemInfoWrapper.CPUUsage;\n        Console.WriteLine($\"Total CPU Usage: {totalCPUUsage:F2}%\");\n        Console.WriteLine(\"CPU Core Usages:\");\n        for (int i = 0; i \u003c coreUsages.Length; i++)\n        {\n            Console.WriteLine($\"  Core {i}: {coreUsages[i]:F2}%\");\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpdevjesco%2Fsystemmonitoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpdevjesco%2Fsystemmonitoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpdevjesco%2Fsystemmonitoring/lists"}