Skip to content

Commit

Permalink
Merge pull request #7 from zendive/next
Browse files Browse the repository at this point in the history
v1.0.5
- add self/external domain origin indication for first callstack link
- wrap requestAnimationFrame/cancelAnimationFrame
- wrap requestIdleCallback/cancelIdleCallback
- add option to wrap native functions on demand via visibility panel
- show online status in history panels
- collect and show regressors (callstacks from wich delayed invocations were canceled before being fired)
- add option to debug illusive callstacks when callstack have no links to source files (works when installed locally and built in dev mode)
- minor fixes
  • Loading branch information
zendive authored Aug 8, 2024
2 parents c599b57 + d19f26d commit fff7743
Show file tree
Hide file tree
Showing 51 changed files with 5,691 additions and 3,586 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable
# packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency review'
on:
pull_request:
branches: [ "master", "next" ]

# If using a dependency submission action in this workflow this permission will need to be set to:
#
# permissions:
# contents: write
#
# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
permissions:
contents: read
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
with:
comment-summary-in-pr: always
# fail-on-severity: moderate
# deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
# retry-on-snapshot-warnings: true
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/public/build
pnpm-lock.yaml
*.yml
*.yaml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- Available in Chrome Web Store as [API Monitor](https://chromewebstore.google.com/detail/api-monitor/bghmfoakiidiedpheejcjhciekobjcjp)

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 active or passed timeouts, intervals, 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 ([documentation](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement), [example](https://www.w3.org/2010/05/video/mediaevents.html)).
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 ([documentation](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement), [example](https://www.w3.org/2010/05/video/mediaevents.html)).

### Motivation

Expand All @@ -28,7 +28,7 @@ To explore the internals of a complex systems.
### Build requirements

- OS: Linux
- Node: 20.15.0 (LTS)
- Node: 20.16.0 (LTS)

### Build instructions

Expand Down
Binary file added doc/api-monitor-promo.xcf
Binary file not shown.
8 changes: 8 additions & 0 deletions jest/tests/time.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// {{ jestis
import { TextEncoder } from 'node:util';
global.TextEncoder = TextEncoder;
// @ts-ignore
global.requestIdleCallback = function noop() {};
global.cancelIdleCallback = function noop() {};
// }}

import { describe, expect, test, beforeEach } from '@jest/globals';
import { Stopper, Timer, Fps, MeanAggregator } from '../../src/api/time.ts';

Expand Down
Loading

0 comments on commit fff7743

Please sign in to comment.