This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Metadata cache hit-rate


hitRate = H5F.get_mdc_hit_rate(file_id)


hitRate = H5F.get_mdc_hit_rate(file_id) queries the metadata cache of the target file to obtain its hit-rate since the last time hit-rate statistics were reset. If the cache has not been accessed since the last time the hit-rate statistics were reset, the hit-rate is defined to be 0.0. The hit-rate is calculated as

(cache hits / (cache hits + cache misses))


fid ='example.h5');
hit_rate = H5F.get_mdc_hit_rate(fid);