Skip to content

Commit a78b157

Browse files
Apply suggestions from code review
Co-authored-by: Hanna Skryl <80118140+hanna-skryl@users.noreply.github.com>
1 parent 42f450f commit a78b157

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/utils/docs/profiler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const saved = profiler.measure('save-user', () => saveToDb(user), {
268268

269269
### Features
270270

271-
- **Crash-save Write Ahead Log**: Ensures profiling data is saved even if the application crashes.
271+
- **Crash-safe Write Ahead Log**: Ensures profiling data is saved even if the application crashes.
272272
- **Recoverable Profiles**: Ability to resume profiling sessions after interruptions or crash.
273273
- **Automatic Trace Generation**: Generates trace files compatible with Chrome DevTools for in-depth performance analysis.
274274
- **Multiprocess Support**: Designed to handle profiling over sharded WAL.

packages/utils/src/lib/profiler/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export const PROFILER_DEBUG_ENV_VAR = 'CP_PROFILER_DEBUG';
1919
/**
2020
* Environment variable name for setting the Sharded WAL Coordinator ID.
2121
* This ID is used to identify the coordinator instance in a sharded Write-Ahead Logging setup.
22-
* @example
23-
* CP_SHARDED_WAL_COORDINATOR_ID=coordinator-1 npm run dev
22+
*
23+
* @example
24+
* CP_SHARDED_WAL_COORDINATOR_ID=coordinator-1 npm run dev
2425
*/
2526
export const SHARDED_WAL_COORDINATOR_ID_ENV_VAR =
2627
'CP_SHARDED_WAL_COORDINATOR_ID';

packages/utils/src/lib/wal.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ describe('parseWalFormat', () => {
679679
});
680680
});
681681

682-
describe('isLeaderWal', () => {
682+
describe('isCoordinatorProcess', () => {
683683
it('should return true when env var matches current pid', () => {
684684
const profilerId = `${Math.round(performance.timeOrigin)}${process.pid}.1.0`;
685685
vi.stubEnv('TEST_LEADER_PID', profilerId);

0 commit comments

Comments
 (0)