I am trying to get system info for my program. Mainly I would like to know when the system is near idle so my program can do some behind the scenes work and not effect the user. I also would like to have my programs memory usage and CPU usage recorded. I found
https://www.mitec.cz/msics.html which seems to be for Windows only. I would really like to be able to get this information easily from all platforms my program may run on.... Apple, Windows, Linux etc.
So before I get crazy and try to write my own components, do you guys know of any exsisting cross platform components? I think for linux i could parse information from htop... windows seems to have a pretty extensive API for this info... Apple, well I have no idea.
I AM VERY inexperienced with Pascal and Lazarus... so for my first question...
1. Is writing a component that can be reused to gather all this information something that is gonna be so complex that a beginner should not waste time with it? Windows seems semi easy...
2. Before i go too far, is this something that is already available?
3. I have noticed in code samples what I believe are called compiler directives? Where it looks like {ifdef win32 ... }
I did some searching on those comments and I am not finding any great simple info for beginners. Are they called compiler directives?
Just found my answer to this one... i am reading through
https://wiki.freepascal.org/Multiplatform_Programming_Guidenot sure how i missed it before
I guess those are my questions for now... I may have more depending on those answers.