Click Here
home features news forums classifieds faqs links search
5640 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
44 crawler(s) on-line.
 6 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 sibbi:  17 mins ago
 Kremlar:  1 hr 25 mins ago
 ssolie:  1 hr 29 mins ago
 freak:  2 hrs 22 mins ago
 broadblues:  2 hrs 38 mins ago
 NutsAboutAmiga:  2 hrs 39 mins ago
 tomazkid:  2 hrs 47 mins ago
 evilFrog:  3 hrs 1 min ago
 Rob:  3 hrs 15 mins ago
 Samurai_Crow:  3 hrs 17 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  Activity Monitor
Register To Post

PosterThread
broadblues 
Activity Monitor
Posted on 21-May-2019 11:08:09
#1 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4384
From: Portsmouth England

I just cleaned up and uploaded a small tool I've been using to monitor my disk activity. It will insert a hook inot the dos event notification system (Thanks to Colin Wenzel for his adive on this) and log changes to specified paths and or directories.

Here is s mall snippit of the logging output.


#####################################################################
Monday 20 May 2019 21:36:47 Appdir:ActivityMonitor- Collating filesystem data
#####################################################################
#####################################################################
Monday 20 May 2019 21:38:05 Appdir:ActivityMonitor - Begin logging
#####################################################################
Monday 20 May 2019 21:43:48: File PROJECTS:ActivityMonitor/trunk/AM_Notify.c was created
Monday 20 May 2019 21:45:01: File PROJECTS:ActivityMonitor/trunk/AM_Main.c was created
Monday 20 May 2019 21:56:23: File PROJECTS:ActivityMonitor/trunk/AM_Logging.c was created
Monday 20 May 2019 21:56:54: File PROJECTS:ActivityMonitor/trunk/AM_Date.c was created
Monday 20 May 2019 21:57:12: File PROJECTS:ActivityMonitor/trunk/AM_Main.c was created
Monday 20 May 2019 22:02:37: File PROJECTS:ActivityMonitor/trunk/includes/AM_Notify.h was created
Monday 20 May 2019 22:02:37: File PROJECTS:ActivityMonitor/trunk/includes/AM_Notify.h was modified


I mainly use it to estimate time spent working on various projects, there are couple of perls script in the archive that agregate the data and esitmate the total time spent, based on which directories were modified and allow a certain "idle time" for thinking between saving edits etc

It could also be used to monitor changes to your system partition or the ENV: device etc etc as a sort of security monitor

The first (unreleased) version used individual notifications applied recursively which took quite some time to initialise, this version uses a hook set via the DOSFileDirNotify.resource which is hugely more efficient for this level of snooping on the filesystem!

http://os4depot.net/?function=showfile&file=utility/misc/activitymonitor.lha

Needs dos.library 53.81

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: Activity Monitor
Posted on 21-May-2019 11:30:56
#2 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4384
From: Portsmouth England

@broadblues

BTW you need to use deveice names not volume names or assigns when specifying paths to log.

So use

"RAM:" not "Ram Disk:"
"RAM:T" not "T:"

and in my main usage case

"DH5:Projects" not "PROJECTS:"

(the log above predates the switch to the resource based approach...)

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
nbache 
Re: Activity Monitor
Posted on 21-May-2019 21:47:24
#3 ]
Cult Member
Joined: 8-Apr-2003
Posts: 956
From: Copenhagen, Denmark

@broadblues

Neat tool!

Just curious: What happens if you set it to log in a path where its own output is redirected to a file?


Best regards,

Niels

 Status: Offline
Profile     Report this post  
broadblues 
Re: Activity Monitor
Posted on 22-May-2019 9:32:18
#4 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4384
From: Portsmouth England

@nbache

Well I was a bit concerned by that myself so I made it explicitly ignore any events related to it's log file.

In practice however, even without that, the logfile is created before logging and doesn't get closed till after logging has finished, and simply writing data to a file doesn't generate any events so even if you redirect the output rather than use a named logfile the feared runaway senario doesn't occur.



_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Xenic 
Re: Activity Monitor
Posted on 22-May-2019 19:33:07
#5 ]
Super Member
Joined: 2-Feb-2004
Posts: 1235
From: Pennsylvania, USA

@broadblues
I mistakenly assumed that multiple files should be seperated by commas as shown in the format ( {name,...} ) and the program would parse the comma seperated filenames. It wouldn't hurt to specify 'space' seperation in the description and add a multiple file example for dummys like me

_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Activity Monitor
Posted on 22-May-2019 20:24:57
#6 ]
Elite Member
Joined: 9-Jun-2004
Posts: 11063
From: Norway

@Xenic

Yes I think a CSV format be good idea, using TAB's or some type separator char, this way it easy to import into programs like TurboCalc and Excel, or even be imported into SimpleSQL or something like that, then you can generate some interesting rapports, and use this as a source.

_________________
Please check out my software:
Excalibur, Basilisk 2, AmigaInputAnywhere.
LiveForIt-Music
http://lifeofliveforit.blogspot.no/

 Status: Offline
Profile     Report this post  
nbache 
Re: Activity Monitor
Posted on 22-May-2019 21:15:17
#7 ]
Cult Member
Joined: 8-Apr-2003
Posts: 956
From: Copenhagen, Denmark

@broadblues

Quote:
I made it explicitly ignore any events related to it's log file.
Wise move .

Quote:
the logfile is created before logging and doesn't get closed till after logging has finished, and simply writing data to a file doesn't generate any events
Ah, okay. That should take care of that then. Cool.

Best regards,

Niels

Last edited by nbache on 22-May-2019 at 09:15 PM.

 Status: Offline
Profile     Report this post  
broadblues 
Re: Activity Monitor
Posted on 22-May-2019 22:56:24
#8 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4384
From: Portsmouth England

@Xenic

Yes sorry the FORMAT I gave there is not in the correct syntax, comparing with COPY , which also has an /M term the format should simply be {} the curly braces themselves indicate multple items. I've fixed it in my src for the next version....

FORMAT
[TARGET] {<path>} [LOGFILE <logfilename>] [DATESTAMPLOG] [NOTRANSLATE]
[RECURSE]

@Liveforit.

Future version might support an LFORMAT arg to allow custom log lines, then you can have your CSV. Currently is space delimetered.



Last edited by broadblues on 22-May-2019 at 10:57 PM.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle