@vpalmisano/webrtcperf 4.4.12 → 4.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpalmisano/webrtcperf",
3
- "version": "4.4.12",
3
+ "version": "4.5.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/vpalmisano/webrtcperf.git"
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "license": "AGPL-3.0-or-later",
53
53
  "dependencies": {
54
- "@google/genai": "^1.20.0",
54
+ "@google/genai": "^1.21.0",
55
55
  "@puppeteer/browsers": "^2.10.10",
56
56
  "@vpalmisano/throttler": "0.0.14",
57
57
  "@vpalmisano/webrtcperf-js": "^1.1.14",
@@ -78,8 +78,8 @@
78
78
  "pidtree": "^0.6.0",
79
79
  "pidusage": "^4.0.1",
80
80
  "prom-client": "^15.1.3",
81
- "puppeteer": "^24.22.0",
82
- "puppeteer-core": "^24.22.0",
81
+ "puppeteer": "^24.22.3",
82
+ "puppeteer-core": "^24.22.3",
83
83
  "puppeteer-extra": "^3.3.6",
84
84
  "puppeteer-extra-plugin-stealth": "^2.11.2",
85
85
  "puppeteer-intercept-and-modify-requests": "^1.3.1",
@@ -90,7 +90,7 @@
90
90
  "yaml": "^2.8.1"
91
91
  },
92
92
  "devDependencies": {
93
- "@eslint/js": "^9.35.0",
93
+ "@eslint/js": "^9.36.0",
94
94
  "@types/basic-auth": "^1.1.3",
95
95
  "@types/compression": "^1.8.1",
96
96
  "@types/convict": "^6.1.6",
@@ -105,11 +105,11 @@
105
105
  "@types/sprintf-js": "^1.1.4",
106
106
  "@types/tar-fs": "^2.0.4",
107
107
  "@types/ws": "^8.18.1",
108
- "@typescript-eslint/eslint-plugin": "^8.44.0",
109
- "@typescript-eslint/parser": "^8.44.0",
108
+ "@typescript-eslint/eslint-plugin": "^8.44.1",
109
+ "@typescript-eslint/parser": "^8.44.1",
110
110
  "@vpalmisano/typedoc-cookie-consent": "^0.0.4",
111
111
  "@vpalmisano/typedoc-plugin-ga": "^1.0.6",
112
- "eslint": "^9.35.0",
112
+ "eslint": "^9.36.0",
113
113
  "eslint-config-prettier": "^10.1.8",
114
114
  "eslint-import-resolver-typescript": "^4.4.4",
115
115
  "eslint-plugin-import": "^2.32.0",
@@ -122,7 +122,7 @@
122
122
  "ts-loader": "^9.5.4",
123
123
  "typedoc": "^0.28.13",
124
124
  "typescript": "^5.9.2",
125
- "typescript-eslint": "^8.44.0",
125
+ "typescript-eslint": "^8.44.1",
126
126
  "webpack": "^5.101.3",
127
127
  "webpack-cli": "^6.0.1",
128
128
  "webpack-node-externals": "^3.0.0",
@@ -131,7 +131,7 @@
131
131
  "optionalDependencies": {
132
132
  "chart.js": "^4.5.0",
133
133
  "chartjs-chart-error-bars": "^4.4.4",
134
- "skia-canvas": "^3.0.7",
134
+ "skia-canvas": "^3.0.8",
135
135
  "zeromq": "^6.5.0"
136
136
  }
137
137
  }
package/src/app.ts CHANGED
@@ -25,6 +25,7 @@ import path from 'path'
25
25
  import { markedTerminal } from 'marked-terminal'
26
26
  import { EventEmitter } from 'events'
27
27
  import { runWithDocker } from './docker'
28
+ import { plotDetailedStatsDashboard } from './plot'
28
29
 
29
30
  // eslint-disable-next-line @typescript-eslint/no-require-imports
30
31
  const { marked } = require('marked')
@@ -242,6 +243,17 @@ async function main(): Promise<void> {
242
243
  process.exit(0)
243
244
  }
244
245
 
246
+ if (process.argv.includes('--plot')) {
247
+ process.argv = process.argv.filter(s => s !== '--plot')
248
+ try {
249
+ await plotDetailedStatsDashboard(process.argv[0], process.argv[1])
250
+ } catch (err: unknown) {
251
+ log.error(`plotDetailedStatsDashboard error: ${(err as Error).stack}`)
252
+ process.exit(1)
253
+ }
254
+ process.exit(0)
255
+ }
256
+
245
257
  let configs: Config[]
246
258
 
247
259
  // Handle prompt.
package/src/config.ts CHANGED
@@ -638,7 +638,8 @@ a .csv file inside that file.`,
638
638
  },
639
639
  detailedStatsPath: {
640
640
  doc: `The log file path; if set, the detailed stats will be written in \
641
- a .csv file inside that file.`,
641
+ a .csv file inside that file. \
642
+ Use \`webrtcperf --plot <detailed-stats-file> <output-file>.html\` to generate a HTML plot.`,
642
643
  format: String,
643
644
  default: '',
644
645
  env: 'DETAILED_STATS_PATH',
package/src/docker.ts CHANGED
@@ -54,6 +54,7 @@ export async function runWithDocker(argv: string[]) {
54
54
  'SERVER_USE_HTTPS=true',
55
55
  'SERVER_DATA=/data',
56
56
  `START_TIMESTAMP=${startTimestamp}`,
57
+ 'VIDEO_CACHE_PATH=/root/.webrtcperf/cache',
57
58
  ]
58
59
 
59
60
  if (configs[0].prometheusPushgateway.startsWith('http://localhost')) {