TimelineProfiler-test.js — react Source File
Architecture documentation for TimelineProfiler-test.js, a javascript file in the react codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR cf4707e8_dec8_5b3b_7a75_23dfe1f321e7["TimelineProfiler-test.js"] 7ea1760e_9c01_71c9_3ba5_32a9a10a0ce4["utils.js"] cf4707e8_dec8_5b3b_7a75_23dfe1f321e7 --> 7ea1760e_9c01_71c9_3ba5_32a9a10a0ce4 026f470e_4718_4a16_f9eb_8e2406332f5a["getLegacyRenderImplementation"] cf4707e8_dec8_5b3b_7a75_23dfe1f321e7 --> 026f470e_4718_4a16_f9eb_8e2406332f5a a5efc5c7_2c74_9c94_1e30_396b32c15d53["getModernRenderImplementation"] cf4707e8_dec8_5b3b_7a75_23dfe1f321e7 --> a5efc5c7_2c74_9c94_1e30_396b32c15d53 style cf4707e8_dec8_5b3b_7a75_23dfe1f321e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
import {
getLegacyRenderImplementation,
getModernRenderImplementation,
normalizeCodeLocInfo,
} from './utils';
let React = require('react');
let Scheduler;
let store;
let utils;
// This flag is on experimental which disables timeline profiler.
const enableComponentPerformanceTrack =
React.version.startsWith('19') && React.version.includes('experimental');
describe('Timeline profiler', () => {
if (enableComponentPerformanceTrack) {
test('no tests', () => {});
// Ignore all tests.
return;
}
beforeEach(() => {
utils = require('./utils');
utils.beforeEachProfiling();
React = require('react');
Scheduler = require('scheduler');
store = global.store;
});
afterEach(() => {
jest.restoreAllMocks();
});
describe('User Timing API', () => {
let currentlyNotClearedMarks;
let registeredMarks;
let featureDetectionMarkName = null;
let setPerformanceMock;
function createUserTimingPolyfill() {
featureDetectionMarkName = null;
currentlyNotClearedMarks = [];
registeredMarks = [];
// Remove file-system specific bits or version-specific bits of information from the module range marks.
// ... (2584 more lines)
Domain
Subdomains
Classes
Source
Frequently Asked Questions
What does TimelineProfiler-test.js do?
TimelineProfiler-test.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What does TimelineProfiler-test.js depend on?
TimelineProfiler-test.js imports 3 module(s): getLegacyRenderImplementation, getModernRenderImplementation, utils.js.
Where is TimelineProfiler-test.js in the architecture?
TimelineProfiler-test.js is located at packages/react-devtools-shared/src/__tests__/TimelineProfiler-test.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free