IAMStats interface

The IAMStats interface retrieves performance data from the Filter Graph Manager. Filters can use this interface to record performance data.

Filter developers: As with all Filter Graph Manager interfaces, a filter must not hold a reference count on this interface, or it will cause a circular reference count. For more information, see IBaseFilter::JoinFilterGraph.

Members

The IAMStats interface inherits from the IDispatch interface. IAMStats also has these types of members:

Methods

The IAMStats interface has these methods.

MethodDescription
AddValue

Records a new value.

get_Count

Retrieves the number of statistics.

GetIndex

Retrieves the index for a named statistic, or creates a new statistic.

GetValueByIndex

Retrieves a statistic by index.

GetValueByName

Retrieves a statistic by name.

Reset

Resets all statistics to zero.

 

Remarks

Each statistic is defined by a name and an index. Use the GetIndex method to find the index from the name. Values are always double types. The following statistics are predefined.

Name Description
RenderFileMeasures the time taken by each call to IGraphBuilder::RenderFile.
ConnectDirectInternalMeasures the time taken to connect two filters.
Build Mapper CacheMeasures the time taken to cache information about registered filters (used by the Filter Mapper object).
Process Category CategoryNameMeasures the time taken to cache information about filters in a particular category, where CategoryName is the friendly name of the filter category. (See Filter Categories.)

 

For each of these statistics, the values represent time in milliseconds.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Control.h (include Dshow.h)

Library

Strmiids.lib

 

 

Community Additions

ADD
Show:
© 2014 Microsoft