LoggerGetStoredSamplingCount


機能

現在のサンプリング格納回数を取得します。

書式

Ret = LoggerGetStoredSamplingCount ( AppId , StoredSamplingCount )

引数

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

LoggerOpenApplicationで取得したアプリケーションIDを指定します。

StoredSamplingCount  [ VB.NET: UInteger ] [ C++:unsigned long * ] [ C#: out uint ]

現在のサンプリング格納回数を格納するアドレスを指定します。

戻り値

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

定義

戻り値

[Dec]

内容

LOGGER_ERR_SUCCESS

0

正常終了

LOGGER_ERR_INVALID_ID

10010

無効なAppIDが指定されました。

その他のエラー(参照:エラーコード一覧)

初期値

特になし

説明

現在のサンプリング格納回数を取得します。

LoggerGetSamplingData関数(または、LoggerGetSamplingDataBin関数)と併用することで、C-LOGGERの収集データを一括で取得させることができます。
収集データを取得すると、取得したデータ数だけ、現在のサンプリング格納回数が減算されます。

総サンプリング回数は、LoggerGetTotalSamplingCount関数で取得できます。
総サンプリング回数は、収集データを取得しても減算されません。

使用例

現在のサンプリング格納回数を取得します。

VB.NET

Dim Ret As Integer
Dim StoredSamplingCount As UInteger

Ret = LoggerGetStoredSamplingCount(AppId, StoredSamplingCount)

 

C++

long Ret;
unsigned long StoredSamplingCount;

Ret = LoggerGetStoredSamplingCount(AppId, &StoredSamplingCount);

 

C#

int Ret;
uint StoredSamplingCount;

Ret = logger.GetStoredSamplingCount(AppId, out StoredSamplingCount);

 

関連項目

LoggerGetTotalSamplingCount LoggerGetSamplingData LoggerGetSamplingDataBin