[Zope] Objects access
Tino Wildenhain
tino at wildenhain.de
Thu Jun 16 07:33:08 EDT 2005
Am Donnerstag, den 16.06.2005, 11:24 +0100 schrieb Hugo Ramos:
> Yellow ppl,
>
> Is there a way to know how many times an object has been accessed
> during current Zope's uptime?
> Something like the activity tab in /Control_Panel/Database/main but
> specific to each object in ZODB.
You can enable profiling (see ZMI in Control_Panel)
(You need to create a file for the log in the filesystem,
change config and restart zope) where you get refcounts on
all object but it will also cause substantial slowdown.
E.g. nothing you use in production environment.
Next best be it to just analyze the logfiles, for example
Z2.log - which gives you numbers based on URL
(Not that in a publishing process not only the object
on the specific URL is used but also a lot parent objects,
user, etc.
I guess it highly depends on what you really want to do.
--
Tino Wildenhain <tino at wildenhain.de>
More information about the Zope
mailing list