@vpalmisano/webrtcperf 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.min.js +1 -1
- package/build/src/plot.d.ts +10 -0
- package/build/src/plot.js +11 -0
- package/build/src/plot.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/plot.ts +12 -0
package/package.json
CHANGED
package/src/plot.ts
CHANGED
|
@@ -175,7 +175,19 @@ function groupByParticipant(rows: StatsRow[]) {
|
|
|
175
175
|
return m
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* It plots a detailed stats dashboard from a CSV file.
|
|
180
|
+
* @param statsFile The path to the CSV file containing the detailed stats.
|
|
181
|
+
* @param outFile The path to the output HTML file.
|
|
182
|
+
* @returns A promise that resolves when the plot is complete.
|
|
183
|
+
* @example
|
|
184
|
+
* ```bash
|
|
185
|
+
* webrtcperf --plot logs/detailed-stats.csv plot.html
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
178
188
|
export async function plotDetailedStatsDashboard(statsFile: string, outFile = 'plot.html') {
|
|
189
|
+
log.info(`Plotting detailed stats from ${statsFile} to ${outFile}`)
|
|
190
|
+
|
|
179
191
|
const rows = await parseStatsFile(statsFile)
|
|
180
192
|
if (rows.length === 0) {
|
|
181
193
|
log.warn('No stats found')
|