[nycbug-talk] Mac network stats question

Brian Gupta brian.gupta at gmail.com
Wed Oct 14 00:59:43 EDT 2009


Marc,
I assume you are referring to "/Applications/Utilities/Activity Monitor"? As
I understand "Activity Monitor" doesn't really store historical data, and
can only list data that it's seen since you launched it, and/or info it can
query from the kernel. However I could be wrong. Here is the list of files
that "Activity Monitor" holds open.:

$ lsof -p 158
COMMAND   PID   USER   FD     TYPE     DEVICE  SIZE/OFF    NODE NAME
Activity  158 bgupta  cwd      DIR       14,2      1190       2 /
Activity  158 bgupta  txt      REG       14,2    481680 1821547
/Applications/Utilities/Activity Monitor.app/Contents/MacOS/Activity Monitor
Activity  158 bgupta  txt      REG       14,2   1250592 1713351
/System/Library/PrivateFrameworks/GraphKit.framework/Versions/A/GraphKit
Activity  158 bgupta  txt      REG       14,2      3144 1682994
/System/Library/ColorSync/Profiles/sRGB Profile.icc
Activity  158 bgupta  txt      REG       14,2     28564 1686910
/System/Library/Fonts/Keyboard.ttf
Activity  158 bgupta  txt      REG       14,2    811436 1683523
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/SArtFile.bin
Activity  158 bgupta  txt      REG       14,2  13993264 1688285
/usr/share/icu/icudt40l.dat
Activity  158 bgupta  txt      REG       14,2    460976 1693001
/System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
Activity  158 bgupta  txt      REG       14,2   2414697 1686908
/System/Library/Fonts/Helvetica.dfont
Activity  158 bgupta  txt      REG       14,2    559995 1686914
/System/Library/Fonts/Monaco.dfont
Activity  158 bgupta  txt      REG       14,2   4431872 5042099
/private/var/folders/pU/pUKt48bXGN8gH5JVmeMHNk+++TI/-Caches-/com.apple.LaunchServices-025501.csstore
Activity  158 bgupta  txt      REG       14,2   5425538 1687842
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
Activity  158 bgupta  txt      REG       14,2   1757684 1686912
/System/Library/Fonts/LucidaGrande.ttc
Activity  158 bgupta  txt      REG       14,2    802460 1691736
/System/Library/Keyboard
Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
Activity  158 bgupta  txt      REG       14,2   5236560 1692999
/System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
Activity  158 bgupta  txt      REG       14,2   7944096 2763912
/System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/libclh.dylib
Activity  158 bgupta  txt      REG       14,2    144580 1687844
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
Activity  158 bgupta  txt      REG       14,2    490410 1687831
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Activity  158 bgupta  txt      REG       14,2   5946480 1683518
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/ArtFile.bin
Activity  158 bgupta  txt      REG       14,2  13972240 2763911
/System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xxxGLDriver
Activity  158 bgupta  txt      REG       14,2   1054960 1700909
/usr/lib/dyld
Activity  158 bgupta  txt      REG       14,2 197410816 2764561
/private/var/db/dyld/dyld_shared_cache_x86_64
Activity  158 bgupta    0r     CHR        3,2       0t0     303 /dev/null
Activity  158 bgupta    1     PIPE 0x0d4367d0     16384         ->0x0d436834
Activity  158 bgupta    2     PIPE 0x0d4367d0     16384         ->0x0d436834
Activity  158 bgupta    3r     REG       14,2       163 1717953
/private/etc/security/audit_control
Activity  158 bgupta    4u  KQUEUE                              count=1,
state=0x2
Activity  158 bgupta    5r     REG       14,2   5425538 1687842
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
Activity  158 bgupta    6r     REG       14,2    144580 1687844
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
Activity  158 bgupta    7r     REG       14,2    490410 1687831
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Activity  158 bgupta   89r     REG       14,2       611 1717952
/private/etc/security/audit_class

- Brian Gupta

New York City user groups calendar:
http://nyc.brandorr.com/



On Tue, Oct 13, 2009 at 1:50 PM, Marc Spitzer <mspitzer at gmail.com> wrote:

> I know that, I am looking for where the data files are stored.
>
> thanks,
>
> marc
>
> On Tue, Oct 13, 2009 at 12:52 PM, Brian Cully <bcully at gmail.com> wrote:
> >        For longer term stuff you can always use MRTG or its ilk. However,
> my
> > uses tend more to the immediate conditions, and both MenuMeters and iStat
> > Menus are excellent for at-a-glance analysis (and they also have stuff
> like
> > CPU, memory usage, and MenuMeters has swap rates.)
> >
> > -bjc
> >
> > On 13-Oct-2009, at 12:43, Marc Spitzer wrote:
> >
> >> Hello,
> >>
> >> There is a gui that gives you network usage graph on osx, does anyone
> >> know where the data is stored that is used to draw the chart, and if
> >> possible what format it is in?  This is for 10.4 and 10.5.
> >>
> >> thanks,
> >>
> >> marc
> >> --
> >> Freedom is nothing but a chance to be better.
> >> --Albert Camus
> >>
> >> The problem with socialism is that eventually you run out
> >> of other people's money.
> >> --Margaret Thatcher
> >> _______________________________________________
> >> talk mailing list
> >> talk at lists.nycbug.org
> >> http://lists.nycbug.org/mailman/listinfo/talk
> >
> >
>
>
>
> --
> Freedom is nothing but a chance to be better.
> --Albert Camus
>
>  The problem with socialism is that eventually you run out
> of other people's money.
> --Margaret Thatcher
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nycbug.org:8443/pipermail/talk/attachments/20091014/f95ad1db/attachment.htm>


More information about the talk mailing list