It is currently Sun Jun 25, 2017 6:16 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: PureMonitor for OS X
PostPosted: Tue Feb 05, 2013 9:12 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
A little tool Wilbert and I made to monitor the cpu and memory usage of a PureBasic project.

Features
  • Monitor the cpu, threads (threads running/total threads), memory, open files and open sockets of your PureBasic project.
  • Cpu and memory threshold options.
  • Optional audio and visual warnings of threshold.
  • Save a log file of the cpu and memory usage.*
  • A "Live Log" of the cpu and memory usage.*
  • Option to kill your app if it locks up when the debugger is not on.
  • Mouse click on the monitoring text to show or hide the options.
  • PureMonitor now auto opens and closes when configured in PureBasic's tools (see below).
  • 64-bit App

*The log monitors every second for 10 seconds, then every 10 seconds for 50 seconds and finally by the minute.

Configure Tools in PureBasic
  • Open "Configure Tools..."
  • Select "New"
  • Commandline: open
  • Arguments: /Applications/PureMonitor.app --args autoclose
  • Name: PureMonitor
  • Event to trigger the tool: Editor Startup
  • Select - "Hide Tool from the Main menu"
  • Click "Ok"

Download PureMonitor v1.4.0 (Developer signed for OS X 10.6+)

Image

Image

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Last edited by J. Baker on Tue Oct 21, 2014 10:51 am, edited 38 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Tue Feb 05, 2013 10:15 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
Just updated the app. It should now auto-close when you close your app. ;)

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Tue Feb 05, 2013 11:24 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Feb 16, 2009 10:42 am
Posts: 536
Location: sweden
Oh thats nice.
Suggestion:
Logging!! (like if I run a program for a long time so save to a csv file every minute CPU and mem average)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Tue Feb 05, 2013 12:00 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 12947
Location: France
Great idea !


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Tue Feb 05, 2013 1:37 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
jesperbrannmark wrote:
Oh thats nice.
Suggestion:
Logging!! (like if I run a program for a long time so save to a csv file every minute CPU and mem average)

Will do. ;)

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Tue Feb 05, 2013 10:48 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
OK, it now has an option to log the average cpu and memory usage by the minute. The file is saved as "PureMonitorLog.txt" in your "Documents" folder. Use the same download link as from above. ;)

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 12:56 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
Fixed a division bug and added a MessageRequester(). If you are logging your resources and you close your app, a MessageRequester() will pop up and ask if you want to open the "PureMonitorLog.txt" file. Use the same download link as from above. ;)

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 6:50 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 2875
Location: Netherlands
You could consider an input field for a threshold value and give some kind of alarm when the threshold is crossed.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 7:22 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
wilbert wrote:
You could consider an input field for a threshold value and give some kind of alarm when the threshold is crossed.

Are you talking about a threshold for memory?

Also, just added an update. Couple of small/minor fixes, new icon and the app is now signed for gatekeeper purposes. ;)

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 7:43 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 2875
Location: Netherlands
J. Baker wrote:
Are you talking about a threshold for memory?

It could be but it also could be cpu usage.
You could for example decide that you don't want the cpu load to get above 25%.
If you would give some kind alarm when it crosses that (could be a sound or show the max cpu load in the application badge for a few seconds), you know what parts of your application need improvement.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 7:54 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
wilbert wrote:
J. Baker wrote:
Are you talking about a threshold for memory?

It could be but it also could be cpu usage.
You could for example decide that you don't want the cpu load to get above 25%.
If you would give some kind alarm when it crosses that (could be a sound or show the max cpu load in the application badge for a few seconds), you know what parts of your application need improvement.

Yes, that does sound good. I had been thinking memory but one for the cpu would be good too.

What I was thinking about memory, is that if the memory keeps going up and up, there may be a memory leak. Then the app would give a warning. I guess I could do that for both the cpu and memory. Looks like we are thinking on the same page. :D

Now what I wasn't sure about is... What if the user walks away from their computer and it throws a warning on one of the two. Should I set a timer, that if the warning isn't responded to, it kills the app?

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 8:19 am 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 3497
Location: Germany
Hi,

since I do a lot of stuff with 'monitoring' (SNMP),
I suggest to send an e-mail if an alarm occurs and an e-mail address is given.

For killing the app: Maybe you can add a second alarm value/level.

20% memory usage: send e-mail
25% memory usage: kill app

Bernd


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 8:32 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
infratec wrote:
Hi,

since I do a lot of stuff with 'monitoring' (SNMP),
I suggest to send an e-mail if an alarm occurs and an e-mail address is given.

For killing the app: Maybe you can add a second alarm value/level.

20% memory usage: send e-mail
25% memory usage: kill app

Bernd

Nice ideas but I hope someone wouldn't walk away too far when testing there app out. By that, I mean having to send an email. I don't know though, I could be wrong.

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 10:11 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 2875
Location: Netherlands
J. Baker wrote:
What if the user walks away from their computer and it throws a warning on one of the two. Should I set a timer, that if the warning isn't responded to, it kills the app?

I would only kill an app automatically if the available free memory (can also be checked) gets too low.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureMonitor for OS X
PostPosted: Wed Feb 06, 2013 10:24 am 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1932
Location: USA
wilbert wrote:
J. Baker wrote:
What if the user walks away from their computer and it throws a warning on one of the two. Should I set a timer, that if the warning isn't responded to, it kills the app?

I would only kill an app automatically if the available free memory (can also be checked) gets too low.

Yes, that would be best. I will definitely look into it thoroughly before making any final decision on that option.

_________________
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.6.8 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye