]> git.ipfire.org Git - thirdparty/squid.git/commit - src/StoreStats.cc
SMP shared memory cache stats were not collected.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 14 Oct 2011 16:21:48 +0000 (10:21 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 14 Oct 2011 16:21:48 +0000 (10:21 -0600)
commit93bc1434c57ba45489e997fffb3e215592fff273
tree968ffa78805c960c1743c28b506b6702e9d4bbca
parent55939a017eefbe9df6f225395000cbc106d9854f
SMP shared memory cache stats were not collected.

"Hot Object" stats were not reported for shared memory cache.

Mean disk object size stats were aggregated inaccurately for SMP.

Moved Store-related stats into a dedicated StoreStats class,
encapsulating memory cache-related (mem), disk cache-related (swap), and
global store (number of objects) stats. Used consistent naming scheme
and a common parent class to make memory and disk stats more alike.

Moved Store stats collection into corresponding Store classes rather
than forcing GetInfo() in stat.cc to know how to deal with all Store stats.
18 files changed:
src/Makefile.am
src/MemStore.cc
src/MemStore.h
src/Store.h
src/StoreHashIndex.h
src/StoreStats.cc [new file with mode: 0644]
src/StoreStats.h [new file with mode: 0644]
src/SwapDir.cc
src/SwapDir.h
src/mgr/InfoAction.cc
src/mgr/InfoAction.h
src/stat.cc
src/store_dir.cc
src/tests/stub_MemObject.cc
src/tests/stub_MemStore.cc
src/tests/stub_store_stats.cc [new file with mode: 0644]
src/tests/testStore.cc
src/tests/testStore.h