site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meg.abyt.es; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Hz1qDCD20KK3FZ3SFpYELmvS2ixCMEPuEQWZoJVJvlw=; b=dQ6JNX+PdrWZF+XcirSCwg6KgBFBJYU0KJ/IOruNN1XjruVIB6qGn9RwjqqPW0ZfN/ SHmZanGfL3tDiCqMpOpDg9jIO/+dKchX0+wHIBET9AIfY3bPskPQXXQn3ImKR7v+AM+N N8KgnHGe+zdKoViok+n4bUHa1/mGxi1S7UXTw= On Tue, Nov 1, 2011 at 2:09 AM, chriskxu <chriskxu@me.com> wrote:
Hi there, I'm new to darwin development, and I have a newbie question, are there some apis that I can call to get general process and thread information(pid, memory usage, cpu, etc...) in user space. Normally on linux, I would use /proc, but as I understood there are no such things on OSX. Can someone help me with this?
man 3 sysctl This is the way that top(1) does it: http://opensource.apple.com/source/top/top-73/libtop.c -Tilghman _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tilghman Lesher