@camstack/addon-pipeline 1.2.182 → 1.2.183
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/dist/session-decode/decode-worker-child.js +6 -2
- package/dist/session-decode/decode-worker-child.mjs +6 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-U-2ES6SY.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-4NEhUNJS.mjs} +1 -1
- package/dist/stream-broker/{hostInit-pj_S4rLR.mjs → hostInit-BWI_flla.mjs} +1 -1
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -1774,6 +1774,8 @@ var DecodeWorkerChild = class {
|
|
|
1774
1774
|
* key frame that can never be captured again.
|
|
1775
1775
|
*/
|
|
1776
1776
|
sceneRefused = 0;
|
|
1777
|
+
/** Scenes planned and cut that no tile in the cut was classified as. */
|
|
1778
|
+
sceneUnclassified = 0;
|
|
1777
1779
|
/**
|
|
1778
1780
|
* Native frame dimensions the retained tiles were cut from. A session's
|
|
1779
1781
|
* resolution does not change (a re-dial clears the store), so ONE pair is
|
|
@@ -2005,7 +2007,7 @@ var DecodeWorkerChild = class {
|
|
|
2005
2007
|
const skipped = this.framesSkipped + this.frames.droppedCount;
|
|
2006
2008
|
const rssMb = Math.round(process.memoryUsage().rss / 1048576);
|
|
2007
2009
|
const ageS = Math.round((now - this.startedAt) / 1e3);
|
|
2008
|
-
this.emitStderr(`session-decode metrics {framesDecoded:${this.framesDecoded}, framesSkipped:${skipped}, deliveredFps:${deliveredFps}, nativeCropHits:${this.nativeCropHits}, nativeCropMisses:${this.nativeCropMisses}, leaseOffered:${this.admission.offered}, leaseAdmitted:${this.admission.admitted}, leaseMarks:${this.admission.marks}, leaseUnmarkedCrops:${this.admission.unmarkedCrops}, leaseAdmission:${NATIVE_LEASE_KNOBS.values.admission}, leaseMb:${Math.round(this.leaseStore.totalBytes / 1048576)}, leaseFrames:${this.leaseStore.size}, holdOverflow:${this.leaseStore.overflowCount}, tilesCut:${this.tilesCut}, tileHits:${this.tileHits}, tileMisses:${this.tileMisses}, tileCutFailures:${this.tileCutFailures}, tileMb:${Math.round(this.tileStore.totalBytes / 1048576)}, tileFrames:${this.tileStore.frameCount}, scenesCut:${this.scenesCut}, sceneHits:${this.sceneHits}, sceneRefused:${this.sceneRefused}, sceneEvicted:${this.sceneStore.evictedCount}, sceneMb:${Math.round(this.sceneStore.totalBytes / 1048576)}, sceneFrames:${this.sceneStore.frameCount}, rssMb:${rssMb}, ageS:${ageS}}${final ? " (final)" : ""}\n`);
|
|
2010
|
+
this.emitStderr(`session-decode metrics {framesDecoded:${this.framesDecoded}, framesSkipped:${skipped}, deliveredFps:${deliveredFps}, nativeCropHits:${this.nativeCropHits}, nativeCropMisses:${this.nativeCropMisses}, leaseOffered:${this.admission.offered}, leaseAdmitted:${this.admission.admitted}, leaseMarks:${this.admission.marks}, leaseUnmarkedCrops:${this.admission.unmarkedCrops}, leaseAdmission:${NATIVE_LEASE_KNOBS.values.admission}, leaseMb:${Math.round(this.leaseStore.totalBytes / 1048576)}, leaseFrames:${this.leaseStore.size}, holdOverflow:${this.leaseStore.overflowCount}, tilesCut:${this.tilesCut}, tileHits:${this.tileHits}, tileMisses:${this.tileMisses}, tileCutFailures:${this.tileCutFailures}, tileMb:${Math.round(this.tileStore.totalBytes / 1048576)}, tileFrames:${this.tileStore.frameCount}, scenesCut:${this.scenesCut}, sceneHits:${this.sceneHits}, sceneRefused:${this.sceneRefused}, sceneUnclassified:${this.sceneUnclassified}, sceneEvicted:${this.sceneStore.evictedCount}, sceneMb:${Math.round(this.sceneStore.totalBytes / 1048576)}, sceneFrames:${this.sceneStore.frameCount}, rssMb:${rssMb}, ageS:${ageS}}${final ? " (final)" : ""}\n`);
|
|
2009
2011
|
this.lastMetricsAt = now;
|
|
2010
2012
|
this.lastDeliveredSnapshot = this.framesDelivered;
|
|
2011
2013
|
if (!this.warnedLarge && rssMb >= WORKER_RSS_WARN_MB) {
|
|
@@ -2171,6 +2173,7 @@ var DecodeWorkerChild = class {
|
|
|
2171
2173
|
if (!this.tileStore.enabled && !this.sceneStore.enabled) return `frame ${frameId} released and retention is DISABLED (tileBudgetMb 0, sceneBudgetMb 0)`;
|
|
2172
2174
|
if (!this.sceneStore.enabled) return `frame ${frameId} released and no retained subject tile contains the requested rectangle; scene tiles are DISABLED (sceneBudgetMb 0), so a full-frame request cannot be served at all`;
|
|
2173
2175
|
if (!this.tileStore.enabled) return `frame ${frameId} released and subject tiles are DISABLED (tileBudgetMb 0)`;
|
|
2176
|
+
if (this.tileStore.get(frameId).length === 0 && this.sceneStore.get(frameId).length === 0) return `frame ${frameId} released and no retained tile for this frame`;
|
|
2174
2177
|
return `frame ${frameId} released and no retained subject or scene tile contains the requested rectangle`;
|
|
2175
2178
|
}
|
|
2176
2179
|
/** The GPU-ring or reserved-slot frame for `frameId` (hold-disabled / newest paths). */
|
|
@@ -2265,10 +2268,11 @@ var DecodeWorkerChild = class {
|
|
|
2265
2268
|
}
|
|
2266
2269
|
});
|
|
2267
2270
|
this.tileCutFailures += plan.bboxes.length - cut.length;
|
|
2268
|
-
const { subjects, scene } = plan.scene ? partitionSceneTile(cut,
|
|
2271
|
+
const { subjects, scene } = plan.scene ? partitionSceneTile(cut, this.tileFrameWidth, this.tileFrameHeight) : {
|
|
2269
2272
|
subjects: cut,
|
|
2270
2273
|
scene: null
|
|
2271
2274
|
};
|
|
2275
|
+
if (plan.scene && scene === null && cut.length > 0) this.sceneUnclassified += 1;
|
|
2272
2276
|
if (subjects.length > 0) {
|
|
2273
2277
|
this.tilesCut += subjects.length;
|
|
2274
2278
|
this.tileStore.put(frameId, subjects);
|
|
@@ -1773,6 +1773,8 @@ var DecodeWorkerChild = class {
|
|
|
1773
1773
|
* key frame that can never be captured again.
|
|
1774
1774
|
*/
|
|
1775
1775
|
sceneRefused = 0;
|
|
1776
|
+
/** Scenes planned and cut that no tile in the cut was classified as. */
|
|
1777
|
+
sceneUnclassified = 0;
|
|
1776
1778
|
/**
|
|
1777
1779
|
* Native frame dimensions the retained tiles were cut from. A session's
|
|
1778
1780
|
* resolution does not change (a re-dial clears the store), so ONE pair is
|
|
@@ -2004,7 +2006,7 @@ var DecodeWorkerChild = class {
|
|
|
2004
2006
|
const skipped = this.framesSkipped + this.frames.droppedCount;
|
|
2005
2007
|
const rssMb = Math.round(process.memoryUsage().rss / 1048576);
|
|
2006
2008
|
const ageS = Math.round((now - this.startedAt) / 1e3);
|
|
2007
|
-
this.emitStderr(`session-decode metrics {framesDecoded:${this.framesDecoded}, framesSkipped:${skipped}, deliveredFps:${deliveredFps}, nativeCropHits:${this.nativeCropHits}, nativeCropMisses:${this.nativeCropMisses}, leaseOffered:${this.admission.offered}, leaseAdmitted:${this.admission.admitted}, leaseMarks:${this.admission.marks}, leaseUnmarkedCrops:${this.admission.unmarkedCrops}, leaseAdmission:${NATIVE_LEASE_KNOBS.values.admission}, leaseMb:${Math.round(this.leaseStore.totalBytes / 1048576)}, leaseFrames:${this.leaseStore.size}, holdOverflow:${this.leaseStore.overflowCount}, tilesCut:${this.tilesCut}, tileHits:${this.tileHits}, tileMisses:${this.tileMisses}, tileCutFailures:${this.tileCutFailures}, tileMb:${Math.round(this.tileStore.totalBytes / 1048576)}, tileFrames:${this.tileStore.frameCount}, scenesCut:${this.scenesCut}, sceneHits:${this.sceneHits}, sceneRefused:${this.sceneRefused}, sceneEvicted:${this.sceneStore.evictedCount}, sceneMb:${Math.round(this.sceneStore.totalBytes / 1048576)}, sceneFrames:${this.sceneStore.frameCount}, rssMb:${rssMb}, ageS:${ageS}}${final ? " (final)" : ""}\n`);
|
|
2009
|
+
this.emitStderr(`session-decode metrics {framesDecoded:${this.framesDecoded}, framesSkipped:${skipped}, deliveredFps:${deliveredFps}, nativeCropHits:${this.nativeCropHits}, nativeCropMisses:${this.nativeCropMisses}, leaseOffered:${this.admission.offered}, leaseAdmitted:${this.admission.admitted}, leaseMarks:${this.admission.marks}, leaseUnmarkedCrops:${this.admission.unmarkedCrops}, leaseAdmission:${NATIVE_LEASE_KNOBS.values.admission}, leaseMb:${Math.round(this.leaseStore.totalBytes / 1048576)}, leaseFrames:${this.leaseStore.size}, holdOverflow:${this.leaseStore.overflowCount}, tilesCut:${this.tilesCut}, tileHits:${this.tileHits}, tileMisses:${this.tileMisses}, tileCutFailures:${this.tileCutFailures}, tileMb:${Math.round(this.tileStore.totalBytes / 1048576)}, tileFrames:${this.tileStore.frameCount}, scenesCut:${this.scenesCut}, sceneHits:${this.sceneHits}, sceneRefused:${this.sceneRefused}, sceneUnclassified:${this.sceneUnclassified}, sceneEvicted:${this.sceneStore.evictedCount}, sceneMb:${Math.round(this.sceneStore.totalBytes / 1048576)}, sceneFrames:${this.sceneStore.frameCount}, rssMb:${rssMb}, ageS:${ageS}}${final ? " (final)" : ""}\n`);
|
|
2008
2010
|
this.lastMetricsAt = now;
|
|
2009
2011
|
this.lastDeliveredSnapshot = this.framesDelivered;
|
|
2010
2012
|
if (!this.warnedLarge && rssMb >= WORKER_RSS_WARN_MB) {
|
|
@@ -2170,6 +2172,7 @@ var DecodeWorkerChild = class {
|
|
|
2170
2172
|
if (!this.tileStore.enabled && !this.sceneStore.enabled) return `frame ${frameId} released and retention is DISABLED (tileBudgetMb 0, sceneBudgetMb 0)`;
|
|
2171
2173
|
if (!this.sceneStore.enabled) return `frame ${frameId} released and no retained subject tile contains the requested rectangle; scene tiles are DISABLED (sceneBudgetMb 0), so a full-frame request cannot be served at all`;
|
|
2172
2174
|
if (!this.tileStore.enabled) return `frame ${frameId} released and subject tiles are DISABLED (tileBudgetMb 0)`;
|
|
2175
|
+
if (this.tileStore.get(frameId).length === 0 && this.sceneStore.get(frameId).length === 0) return `frame ${frameId} released and no retained tile for this frame`;
|
|
2173
2176
|
return `frame ${frameId} released and no retained subject or scene tile contains the requested rectangle`;
|
|
2174
2177
|
}
|
|
2175
2178
|
/** The GPU-ring or reserved-slot frame for `frameId` (hold-disabled / newest paths). */
|
|
@@ -2264,10 +2267,11 @@ var DecodeWorkerChild = class {
|
|
|
2264
2267
|
}
|
|
2265
2268
|
});
|
|
2266
2269
|
this.tileCutFailures += plan.bboxes.length - cut.length;
|
|
2267
|
-
const { subjects, scene } = plan.scene ? partitionSceneTile(cut,
|
|
2270
|
+
const { subjects, scene } = plan.scene ? partitionSceneTile(cut, this.tileFrameWidth, this.tileFrameHeight) : {
|
|
2268
2271
|
subjects: cut,
|
|
2269
2272
|
scene: null
|
|
2270
2273
|
};
|
|
2274
|
+
if (plan.scene && scene === null && cut.length > 0) this.sceneUnclassified += 1;
|
|
2271
2275
|
if (subjects.length > 0) {
|
|
2272
2276
|
this.tilesCut += subjects.length;
|
|
2273
2277
|
this.tileStore.put(frameId, subjects);
|
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-4NEhUNJS.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.183",
|
|
4
4
|
"description": "Pipeline bundle — runner, detection, motion, audio + stream broker. Multi-entry npm package shipping pipeline addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|