Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

A question to Mac OS X gurus

Moderators: Vladimir Kondratyev, Anton Katilin

A question to Mac OS X gurus

Postby Anton Katilin » Fri May 27, 2005 10:40 am

Hi,

In case anybody knows about this issue...

There is a need to get command line of native application on Mac OS X at any arbitrary point (access to argc/argv is not possible because it's a profiler agent, i.e. plugin to Java). Other UNIXes have procfs, AFAIK Mac OS X does not. Some found references tell sysctl should be used instead, but I don't understand what I should particullary do with it.

Alternatively, where can I find source code of the 'ps' program for Mac OS X? It can print command lines so should contain the answer.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby Sascha Weinreuter » Wed Jun 01, 2005 9:46 am

I'm not a MacOS guru (I don't even have one), but maybe running 'ps' with strace (if that exists on MacOS) might give you a hint. Just a thought :wink:

Sascha
Sascha Weinreuter
 
Posts: 46
Joined: Mon Jan 24, 2005 3:01 pm
Location: Germany

Postby Anton Katilin » Tue Jun 21, 2005 8:34 am

Hi Sascha

Thank you for the hint. We used ps's sources and found the solution.

Best regards,
Anton
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.