-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: rename measurePerformance to measureRenders * refactor: expose legacy `measurePerformance` alias * chore: file naming * chore: add changeset * refactor: add `writeFile` option * refactor: warn once * docs: tweaks * refactor: rename MeasureRendersOptions * refactor: rename resetToDefaults
- Loading branch information
1 parent
d4a2001
commit 4352279
Showing
21 changed files
with
179 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@callstack/reassure-measure': minor | ||
'reassure': minor | ||
'test-app-native': minor | ||
--- | ||
|
||
- Rename `measurePerformance` to `measureRenders`. | ||
- Add `writeFile` option to `measureRenders`/`measureFunction`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * as logger from './logger'; | ||
export { warnOnce } from './warn-once'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { warn } from './logger'; | ||
|
||
const warned = new Set<string>(); | ||
|
||
export function warnOnce(message: string, ...args: unknown[]) { | ||
if (warned.has(message)) { | ||
return; | ||
} | ||
|
||
warn(message, ...args); | ||
warned.add(message); | ||
} |
Oops, something went wrong.