Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
macOS / Mac OS X
»
Using getrusage on OSX (+linux)
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
MQTT made easier...
by
avra
[
Today
at 05:03:13 pm]
Why free pascal suppress ...
by
nanobit
[
Today
at 04:35:40 pm]
Is there a way to emphasi...
by
cdbc
[
Today
at 04:17:43 pm]
RTL: export/import WriteL...
by
paule32
[
Today
at 04:15:30 pm]
Treeview: full-width back...
by
wp
[
Today
at 04:03:26 pm]
Deal or no Deal graphic
by
TBMan
[
Today
at 03:51:53 pm]
read keys from windows ko...
by
marcov
[
Today
at 03:49:22 pm]
my programs crash
by
jamie
[
Today
at 01:22:58 pm]
Custom self drawn compone...
by
cdbc
[
Today
at 12:50:10 pm]
IsNan
by
robert rozee
[
Today
at 12:07:43 pm]
Reading and writing AVIF ...
by
Boleeman
[
Today
at 12:01:52 pm]
Reading FLIF images in La...
by
Boleeman
[
Today
at 11:58:25 am]
FLIF and FUIF Formats (Fr...
by
Boleeman
[
Today
at 11:42:17 am]
efficiency problem
by
photor
[
Today
at 11:33:05 am]
Failed to connect to a si...
by
jcmontherock
[
Today
at 10:54:36 am]
making default event hand...
by
egsuh
[
Today
at 10:03:37 am]
TmemTable has not onCalcF...
by
egsuh
[
Today
at 08:46:27 am]
Simple mouse solution for...
by
Lauriet
[
Today
at 08:15:34 am]
Scrollbox, scrollbar Back...
by
ASerge
[
Today
at 08:14:46 am]
"extended" real type prec...
by
LV
[
Today
at 06:48:44 am]
FPC can't link screen_dem...
by
mccfrank
[
Today
at 12:06:32 am]
ThemeServices.DrawText in...
by
regs
[February 08, 2025, 11:25:01 pm]
Gradient with fcl-image
by
wp
[February 08, 2025, 10:46:18 pm]
using RunCommand to wrap ...
by
nomorelogic
[February 08, 2025, 10:39:37 pm]
ellipse ? off topic
by
BubikolRamios
[February 08, 2025, 10:15:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Using getrusage on OSX (+linux) (Read 1079 times)
Grahame Grieve
Sr. Member
Posts: 369
Using getrusage on OSX (+linux)
«
on:
March 02, 2024, 04:32:31 am »
I'd like to call getrusage on OSX, per
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getrusage.2.html
. Ideally, the code will also work on linux.
There's no system routine for getrusage, just an obscure message here:
https://forum.lazarus.freepascal.org/index.php/topic,57914.msg431309.html#msg431309
about using syscall. I really don't know what that means.
Syscall on OSX is equally obscure...
https://www.pilotlogic.com/sitejoom/index.php/forum/macos-development/5155-using-syscall-and-manipulating-file-permissions-on-macos.html
- is that relevant?
How do I use either syscall or getrusage on OSX and linux? (or else, how do I get CPU usage by the process?)
thanks
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
macOS / Mac OS X
»
Using getrusage on OSX (+linux)
TinyPortal
© 2005-2018