Skip to content

Commit d35632a

Browse files
author
Jaime Arteaga
authored
Fix html generation (#132)
From #95 Signed-off-by: Jaime Arteaga <[email protected]>
1 parent 93476fe commit d35632a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/tools/EXT_Exp_MetricExportData.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,23 @@ The following code shows how to export metrics raw data for a metric group.
3737
3838
// Get size for export data
3939
size_t exportDataSize = 0;
40-
${t}MetricGroupGetExportDataExp (hMetricGroup, rawData, rawDataSize,
41-
&exportDataSize, nullptr);
40+
uint32_t dataCount = 0;
41+
uint32_t totalMetricCount = 0;
42+
${t}_metric_group_calculation_type_t type = ${T}_METRIC_GROUP_CALCULATION_TYPE_METRIC_VALUES;
43+
${t}MetricGroupCalculateMetricExportDataExp (hDriver, type, &exportDataSize, nullptr, nullptr, &dataCount, &totalMetricCount, nullptr, nullptr);
4244
4345
// Allocate buffer for export data
4446
uint8_t* pExportData = malloc(exportDataSize);
4547
4648
// Retrieve export data and data format
47-
${t}MetricGroupGetExportDataExp (hMetricGroup, rawData, rawDataSize,
48-
&exportDataSize, pExportData);
49+
${t}MetricGroupCalculateMetricExportDataExp (hDriver, type, &exportDataSize, pExportData, nullptr, &dataCount, &totalMetricCount, nullptr, nullptr);
4950
5051
5152
The following code shows how to perform metrics calculation of collected data, which can be done in a different system than where data was collected.
5253

5354
.. parsed-literal::
5455
5556
// Get data count and total metric count
56-
uint32_t dataCount = 0;
57-
uint32_t totalMetricCount = 0;
5857
${t}_metric_group_calculation_type_t type = ${T}_METRIC_GROUP_CALCULATION_TYPE_METRIC_VALUES;
5958
${t}_metric_calculate_exp_desc_t calculateDesc;
6059
calculateDesc.rawReportSkipCount = 0;

0 commit comments

Comments
 (0)