hyperdrive-profiler 2.0.3 → 2.0.4

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.
Files changed (2) hide show
  1. package/index.js +10 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -65,6 +65,16 @@ const cmd = command('hyperdrive-profiler',
65
65
  timestampsInfo += secTillMetadata
66
66
  ? `${secTillMetadata.toFixed(2).toString()} seconds`
67
67
  : 'unknown (still connecting...)'
68
+ timestampsInfo += `\n - Metadata db: ${drive.db.core.contiguousLength} / ${drive.db.core.length} (contiguous length / length)`
69
+
70
+ const blobsContig = drive.blobs?.core?.contiguousLength == null
71
+ ? 'loading'
72
+ : drive.blobs.core.contiguousLength
73
+ const blobsLength = drive.blobs?.core?.length == null
74
+ ? 'loading'
75
+ : drive.blobs.core.length
76
+
77
+ timestampsInfo += `\n - Blobs core: ${blobsContig} / ${blobsLength} (contiguous length / length)`
68
78
  if (secTillFullyDownload) timestampsInfo += `\n - Fully downloaded in ${secTillFullyDownload.toFixed(2)} seconds`
69
79
 
70
80
  const udxInfo = getUdxInfo(swarmStats, elapsedSec)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperdrive-profiler",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Profile hyperdrive download performance",
5
5
  "main": "index.js",
6
6
  "scripts": {