Fabio Maulo, important developer at NHibernate team, always was contributed with patchs to NHibernate, now it’s porting many features from Hibernate 3.2.5. GA -you can see here and here. Now go for Hibernate Statistics

This it’s the best part of the post, when calculate the cache hit-ratio:

double queryCacheHitCount  = stats.getQueryCacheHitCount();
double queryCacheMissCount = stats.getQueryCacheMissCount();
double queryCacheHitRatio = queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);

Cool uh?