User Name
Password
AppleNova Forums » Programmer's Nook »

Measure CPU?


Register Members List Calendar Search FAQ Posting Guidelines
Measure CPU?
Thread Tools
babelfishi
Member
 
Join Date: Jun 2006
 
2006-08-09, 13:39

When I run my Java app in full-screen, I have no idea how much CPU it is taking up. Is there any way to log the CPU activities when I'm in full-screen (via terminal or something) ?
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-08-09, 13:48

Quote:
Originally Posted by babelfishi
When I run my Java app in full-screen,
Should I even ask?

Quote:
Is there any way to log the CPU activities when I'm in full-screen (via terminal or something) ?
Yeah, use another computer and log in via SSH, then run top.
  quote
babelfishi
Member
 
Join Date: Jun 2006
 
2006-08-09, 13:53

Two things:
Quote:
Yeah, use another computer and log in via SSH, then run top.
1. That's rather annoying. Does that work with Ubuntu Linux / Windows XP?

2. No better way?
  quote
Windowsrookie
Veteran Member
 
Join Date: Oct 2005
Location: Minnesota
Send a message via AIM to Windowsrookie Send a message via MSN to Windowsrookie Send a message via Yahoo to Windowsrookie  
2006-08-09, 13:55

Applications>Utilities>Activity Monitor
  quote
babelfishi
Member
 
Join Date: Jun 2006
 
2006-08-09, 13:57

I know that, but it doesn't give a huge history of CPU usage.
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-08-09, 13:57

That was what I deleted down below. He's fullscreen.
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-08-09, 13:58

Quote:
Originally Posted by babelfishi
Two things:


1. That's rather annoying. Does that work with Ubuntu Linux / Windows XP?
Yes. Ubuntu includes an SSH client. For Windows, you'll have to install one.

Quote:
2. No better way?
Um, no, of course not. If you're filling the screen, you're gonna have to use another screen.
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-08-09, 14:02

Or...

Before you start your app, enter the Terminal and type 'top -l 0 > toplog'.

When you're done, go back to that Terminal window and Ctrl-C to quit top.

'toplog' will be a raw file with all the data. Use your favorite data scraper to parse out what you want.
  quote
babelfishi
Member
 
Join Date: Jun 2006
 
2006-08-09, 14:07

Quote:
chris-computer:~ $ top -l 0 > toplog
^C
chris-computer:~ $ toplog
-bash: toplog: command not found
Err?
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-08-09, 14:10

'more toplog'
  quote
bassplayinMacFiend
Banging the Bottom End
 
Join Date: Jun 2004
 
2006-08-09, 14:14

toplog is a text file, not a program. more is a program that will read toplog, although you might want to use less because less is indeed more than more.
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-08-09, 14:14

Oh don't confuse the poor guy!
  quote
Bryson
Rocket Surgeon
 
Join Date: Feb 2005
Location: The Canadark
 
2006-08-09, 14:57

More cowbell, surely?

I'll get me coat.
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat Fixed in 10.4.2? SantaBarbarian Genius Bar 66 2007-06-28 17:01
NEW CPU SPEED utility for G5 & portables tom p Third-Party Products 10 2005-04-21 15:38
Finder and FireFox using 50% of CPU + Schvoo Genius Bar 8 2005-03-23 22:07
Can someone explain this? (Strange CPU usage) DMBand0026 General Discussion 6 2004-08-07 18:49
CPU temp causing crashes? HOM Genius Bar 6 2004-07-02 09:49


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 05:50.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova