Reveal active or passed timeouts, intervals, and eval invocation call stacks. Observe events and properties of media elements

Latest Version

Version
1.0.6
Update
October 14, 2024
Size
86.9KiB
Developer
Category
Users
36
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
See more

API Monitor Extension

Whether you're developing a Single Page Application (SPA) and want to assess implementation correctness or are curious about how something works, this tool adds additional functionality to the Chrome browser DevTools to reveal timeouts, intervals, idle callbacks, animation frames and `eval` usages while mapping their invocation call stacks to a source code location. If the page has mounted video or audio media element's, their events and property state changes can be observed as they happen.

Wrapped native functions:
- eval
- setTimeout/clearTimeout
- setInterval/clearInterval
- requestAnimationFrame/cancelAnimationFrame
- requestIdleCallback/cancelIdleCallback
- video/audio events&props

Motivation:
- To expedite issues discovery, here are some examples from experience:

* A ~10ms delay interval constantly consuming approximately 10% of CPU from a third-party library, solely to check if the page was resized.
* A bundled dependency library that utilizes the eval function, thereby preventing the removal of unsafe-eval from the Content Security Policy (CSP) header. It can be arguably intentional, but also may reveal a configuration issue when the package was bundled with webpack config's devtool: 'eval' in production mode.
* A substantial number of hidden video elements in the DOM that were consuming resources, unexpectedly limited to 100 medias per domain.
* An unattended interval that was unintentionally left running and contributed to a slowly growing memory.

- To explore the internals of a complex systems.

Source code: https://github.com/zendive/browser-api-monitor
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "version": "1.0.6", "name": "API Monitor", "manifest_version": 3, "description": "Reveal active or passed timeouts, intervals, and eval invocation call stacks. Observe events and properties of media elements", "minimum_chrome_version": "122.0", "homepage_url": "https://github.com/zendive/browser-api-monitor", "author": "[email protected]", "permissions": ["storage"], "host_permissions": ["*://*/*"], "devtools_page": "public/api-monitor-devtools.html", "icons": { "28": "public/img/panel-icon28.png", "64": "public/img/panel-icon64.png", "128": "public/img/panel-icon128.png" }, "content_scripts": [ { "world": "MAIN", "js": ["public/build/api-monitor-cs-main.js"], "matches": [""], "match_origin_as_fallback": true, "all_frames": false, "run_at": "document_start" }, { "js": ["public/build/api-monitor-cs-isolated.js"], "matches": [""], "match_origin_as_fallback": true, "all_frames": false, "run_at": "document_start" } ]}
Read more

Similar Extensions

icon

ChatGPT UI Preview Extension · Developer Tools 36 3 ★ 59.89KiB

icon

HTTP-TRACKER Extension · Developer Tools 36 33 ★ 85.4KiB

icon

ModResponse - Mock and replay API Extension · Developer Tools 36 23 ★ 454KiB

icon

Get That API Extension · Developer Tools 36 2 ★ 80.25KiB

icon

API Trace Extension · Developer Tools 36 2 ★ 43.22KiB

icon

Rest API Inspector Extension · Developer Tools 36 6 ★ 365KiB

icon

Inspect API calls Extension · Developer Tools 36 0 ★ 58.93KiB

icon

XHR Request Interceptor Extension · Developer Tools 36 0 ★ 574KiB

icon

API Hunt Extension · Developer Tools 36 1 ★ 2.77MiB

icon

WebAPI Blocker Extension · Productivity 36 8 ★ 58.61KiB

icon

GPT Finder & Helper Extension · Productivity 36 0 ★ 47.85KiB

icon

HTTP Headers Extension · Developer Tools 36 12 ★ 35.46KiB

icon

Parrot API mocking Extension · Developer Tools 36 5 ★ 3.6MiB

icon

API Recorder Extension · Developer Tools 36 0 ★ 1.69MiB

icon

Kopyst Simplifies Video & Document Creation Extension · Productivity 36 11 ★ 5.84MiB

icon

API Interceptor Extension · Developer Tools 36 1 ★ 2.4MiB

icon

BLOCKoli - Web request blocker Extension · Productivity 36 0 ★ 1.8MiB

icon

Sitemap Scraper Extension · Productivity 36 1 ★ 19.37KiB

icon

Local Storage Explorer Extension · Developer Tools 36 1 ★ 20.14KiB

icon

ModBox – Modify headers, block requests Extension · Developer Tools 36 9 ★ 102KiB

icon

gRPC Web Devtools Extension · Developer Tools 36 5 ★ 999KiB

icon

ChatGPT Automatically 'Continue generating' with Completion Notification Extension · Productivity 36 5 ★ 354KiB

icon

JSON Formatter for API Extension · Developer Tools 36 1 ★ 55.46KiB

icon

Hidden APIs Extension · Productivity 36 0 ★ 137KiB