honeypot@pipelinefx.com
PipelineFX
May 22, 2013, 09:34:10 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: See Announcements for latest Qube updates.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: query memory usage of a job (python or cmdline)  (Read 947 times)
pfranz
Newbie
*
Posts: 1


« on: July 25, 2011, 12:40:38 PM »

Any pointers on querying a job's memory usage after it has completed?  I can find the data under the Stats tab in the gui, but I'm having trouble getting at it in Python or via command line.

Centos 5
Python 2.5
Logged
jburk
Administrator
*****
Posts: 363


« Reply #1 on: August 24, 2011, 03:09:03 PM »

The stats for a subjob can be retrieved via API; they're returned as 1 long string, so you'll have to split them.

Code:
>>> import qb
>>> stats = qb.stats('605.0')
>>> print stats[0]['data']
605.0 start: [Aug 24, 2011 12:28:32] 367511312 end: [Aug 24, 2011 12:28:41] 367511321 time: [9 s] 9 host: jburk-17-mbPro.local thread: 0 mem: 4740 swap: 0

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!