Skip to content

1.4.1 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ To assess Web Application implementation correctness and expedite issues discove
- Warn if it exceeds 4/5 (13.33ms) of 60 FPS hardcoded frame-rate (16.66ms).

- Count calls per second (CPS) when applicable.
- If requested recursively - it reflects animation FPS.

- Detect `eval` function usage in runtime, as well as `setTimeout` and `setInterval` when called with a `string` callback instead of a `function`.
- 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.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.0",
"version": "1.4.1",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxQCaHgX3DkPnGmHr+rhWyPvYemxMhBbvulmj4RvEpAnGVprdPCUiHSY0jOcDn3vnU6zm8mR1mT3sdlYoUGikBIT19/Jf1iGlc2dySt2bmDQXlTrqllT/XB8HW/wruFej9waMw9yqtW1wOJtElxWnT11pzXkKeflH1Sh+//Jnplr577vOmWh9TU8JLJHS9WklPHJyXCCMGrg/0Sxqte5qWryE2yIm9375KGkKN4ZKjSIxaCg0qodhf5Ug9s2QD7/s5xt548gbEUm9LqQHkNoIH3KXuYOnLksJFxi7FDwhg+oXalsONr5eEvPjkwxYpMKJXfRSg8sB8N6cXLUfgLAKUwIDAQAB",
"name": "API Monitor",
"manifest_version": 3,
Expand Down
2 changes: 1 addition & 1 deletion src/api-monitor-cs-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ let currentMetrics: TTelemetry | null;
const eachSecond = new Timer(
{ type: ETimer.TIMEOUT, timeout: 1e3 },
function apiMonitorEachSecond() {
onEachSecond();
eachSecond.start();
onEachSecond();
},
);
const tick = new Timer({
Expand Down
2 changes: 1 addition & 1 deletion src/api/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ export class Fps {

constructor(callback?: (value: number) => void) {
this.#eachSecond = new Timer({ type: ETimer.TIMEOUT, timeout: 1e3 }, () => {
this.#eachSecond.start();
this.value = this.#ticks;
this.#ticks = 0;
callback?.(this.value);
this.#eachSecond.start();
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/view/ConnectionAlert.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
const extensionUpdateSensor = new Timer(
{ type: ETimer.TIMEOUT, timeout: UPDATE_SENSOR_INTERVAL },
() => {
extensionUpdateSensor.start();
whenUpdateDetected(() => {
devtoolsReloadAlertEl?.show();
extensionUpdateSensor.stop();
});
extensionUpdateSensor.start();
},
);

Expand Down
3 changes: 2 additions & 1 deletion src/view/panels/shared/CellSelfTimeStats.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
const eachSecond = new Timer(
{ type: ETimer.TIMEOUT, timeout: 1e3 },
() => {
eachSecond.start();

if (!mean.samples) {
return;
}
Expand All @@ -28,7 +30,6 @@
vs.max = mean.max;

mean.reset();
eachSecond.start();
},
);

Expand Down