dsg
dsg

Reputation: 13004

Xprof output to file

I'm running java with the -Xprof option. I'm wondering if there's a way to output the profiler information to a file rather than stdout.

Upvotes: 3

Views: 2904

Answers (1)

tenorsax
tenorsax

Reputation: 21233

If running from a command line you can try >, ie:

java -Xprof YourClass > output.txt

Not sure what kind of profiling you do and what is the nature of your application, but you may consider a bit friendlier profiler, for example Eclipse TPTP or JProfiler.

Upvotes: 4

Related Questions