Re: Unixy question
Re: Unixy question
- Subject: Re: Unixy question
- From: bill <email@hidden>
- Date: Fri, 10 May 2002 02:44:06 +0800
On Thursday, May 09, 2002, at 05:19AM, Paul Skinner <email@hidden>
wrote:
>
Can someone translate this into the actual string I need to give to a
>
'do shell script' command to get the time with microseconds ?
Paul,
Here is a method to get the time with millisecond, and microsecond for each
system call (elapsed time).
In brief, using the command 3fs_usage2 to monitor the activities of an
application, output the result to a file, then read it.
Step 1:
In Terminal, type the following command:
sudo fs_usage -w Script Editor9 > ~/Desktop/dummy.log
Step 2:
Type the password.
Step 3:
-- Read the file
Do shell script 3more ~/Desktop/dummy.log2
Well, switch back to Script Editor, open a new window
An extract of the log:
02:25:18.343 lseek F=4 O=0x00001830
0.000005 Script Editor
02:25:18.343 read F=4 B=0x16
0.000064 Script Editor
02:25:18.374 lseek F=4 O=0x00003e35
0.000005 Script Editor
02:25:18.374 read F=4 B=0x2a4
0.000074 Script Editor
In the first paragraph, 02:25:18.343 is the timestamp with millisecond,
while 0.000005 is 5 microseconds. Other stuffs, it's beyond my knowledge.
Last, here9s a page to explain fs_usage:
http://developer.apple.com/techpubs/macosx/Essentials/Performance/Performanc
eTools/fs_usage_Fi_alysis_Tool.html
Have fun.
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.