Skip to content

Commit f83d0ea

Browse files
committed
worker: update description
1 parent 7476b30 commit f83d0ea

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ To assess Web Application implementation correctness and expedite issues discove
3737
- Detect `eval` function usage in runtime, as well as `setTimeout` and `setInterval` when called with a `string` callback instead of a `function`.
3838
- By default - `off`, cause the fact of wrapping it, excludes the access to local scope variables from the `eval` script, and as a result, may break the application if it does depend on it.
3939

40-
- Monitor Worker's instance behaviour, its methods and event handlers.
40+
- Monitor Worker's methods and event handlers metrics.
41+
- Warn if number of active workers exceeds number of available CPU cores.
42+
- keep in mind: extension API can't wrap `self.close()` in worker global context (only `terminate()` in top context)
43+
- Detect anomalies:
44+
- attempt to add already added listener with `addEventListener`.
45+
- attempt to remove unknown listener with `removeEventListener`.
4146

4247
- Monitor mounted `video` and `audio` media elements in DOM.
4348
- Present control panel with basic media functions.

src/view/panels/worker/WorkerMetric.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
<legend class="ta-r">
2020
<WorkerSpecifier specifier={metric.specifier} />
2121
{#if metric.online}
22-
[<Variable value={metric.online} />]
22+
<span title="Active Workers">
23+
[<Variable value={metric.online} />]
24+
</span>
2325
{/if}
2426
<span class="divider"></span>
2527
<CollapseExpand

src/view/panels/worker/WorkerMetricAddEventListener.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
factsMap={WorkerAELFacts}
5959
/>
6060
</td>
61-
<td class="ta-c" title="&lt;added&gt; [&lt;removed&gt;]">
61+
<td class="ta-c" title="&lt;called&gt; [&lt;removed&gt;]">
6262
<Variable value={ael.calls} />
6363
{#if ael.canceledCounter}
6464
[<Variable value={ael.canceledCounter} />]

0 commit comments

Comments
 (0)