{"record":{"id":"f740a5a3eeee02cd","repo":"react/react","slug":"getprofilingdata-not-supported-by-this-renderer-f740a5","errorCode":null,"errorMessage":"getProfilingData not supported by this renderer","messagePattern":"getProfilingData not supported by this renderer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"warning","filePath":"packages/react-devtools-shared/src/backend/legacy/renderer.js","lineNumber":1189,"sourceCode":"            const element = internalInstance._currentElement;\n            internalInstance._currentElement = {\n              ...element,\n              props: copyWithSet(element.props, path, value),\n            };\n            forceUpdate(publicInstance);\n            break;\n          case 'state':\n            setInObject(publicInstance.state, path, value);\n            forceUpdate(publicInstance);\n            break;\n        }\n      }\n    }\n  }\n\n  // v16+ only features\n  const getProfilingData = () => {\n    throw new Error('getProfilingData not supported by this renderer');\n  };\n  const handleCommitFiberRoot = () => {\n    throw new Error('handleCommitFiberRoot not supported by this renderer');\n  };\n  const handleCommitFiberUnmount = () => {\n    throw new Error('handleCommitFiberUnmount not supported by this renderer');\n  };\n  const handlePostCommitFiberRoot = () => {\n    throw new Error('handlePostCommitFiberRoot not supported by this renderer');\n  };\n  const overrideError = () => {\n    throw new Error('overrideError not supported by this renderer');\n  };\n  const overrideSuspense = () => {\n    throw new Error('overrideSuspense not supported by this renderer');\n  };\n  const overrideSuspenseMilestone = () => {\n    throw new Error('overrideSuspenseMilestone not supported by this renderer');","sourceCodeStart":1171,"sourceCodeEnd":1207,"githubUrl":"https://github.com/react/react/blob/22e4f993c7ce9373c95aef093b003f84249e2045/packages/react-devtools-shared/src/backend/legacy/renderer.js#L1171-L1207","documentation":"Legacy (React v15) renderer stub for getProfilingData. The v15 reconciler has no fiber commit timeline, so DevTools cannot record or export a profile. The stub throws to signal that profiling is unavailable on this renderer. (Note startProfiling/stopProfiling are deliberately no-ops to avoid breaking multi-root v15+v16 setups.)","triggerScenarios":"DevTools tries to export profiling data and the call resolves to the legacy v15 renderer's getProfilingData stub.","commonSituations":"Profiling a React 15 app, or a mixed v15/v16 page where the profiling request reaches the v15 renderer; DevTools extension version expecting a fiber renderer but only finding a legacy one.","solutions":["Profile a React 16+ (fiber) root instead — v15 is not profileable.","Upgrade the inspected app to React 16+ to enable the Profiler tab.","On mixed-version pages, attach profiling to the v16+ renderer only.","Treat this as expected unavailability rather than a bug."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"function isProfileable(renderer) {\n  // Legacy v15 renderer cannot profile; only fiber (v16+) renderers can.\n  return Boolean(renderer && typeof renderer.getProfilingData === 'function' &&\n    renderer.findHostInstancesForElementID); // present on fiber renderer, not legacy\n}\n\nif (isProfileable(renderer)) {\n  const data = renderer.getProfilingData();\n}","typeGuard":"function isFiberRenderer(renderer) {\n  return Boolean(renderer && typeof renderer.handleCommitFiberRoot === 'function' &&\n    renderer.findHostInstancesForElementID);\n}","tryCatchPattern":null,"preventionTips":["Profile React 16+ fiber roots; v15 is not profileable.","Upgrade React 15 apps to enable the Profiler tab.","On mixed v15/v16 pages, attach profiling to the v16+ renderer only.","Treat the throw as expected unavailability on v15."],"tags":["react-devtools","legacy-renderer","profiling","react-15","unsupported-feature"],"backgroundTag":null,"analyzedSha":"22e4f993c7ce9373c95aef093b003f84249e2045","analyzedAt":"2026-08-12T22:33:25.580Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}