Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5F.get_mdc_hit_rate

Metadata cache hit-rate

Syntax

hitRate = H5F.get_mdc_hit_rate(file_id)

Description

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))

Examples

fid = H5F.open('example.h5');
hit_rate = H5F.get_mdc_hit_rate(fid);
H5F.close(fid);
Was this topic helpful?