getNodeMaxDuration() — supabase Function Reference
Architecture documentation for the getNodeMaxDuration() function in ExplainVisualizer.parser.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD d9e21482_e4bf_b38b_e70f_8cc4de02b8c2["getNodeMaxDuration()"] 817121da_442e_1740_6f00_8b0ae43d50d7["calculateMaxDuration()"] 817121da_442e_1740_6f00_8b0ae43d50d7 -->|calls| d9e21482_e4bf_b38b_e70f_8cc4de02b8c2 style d9e21482_e4bf_b38b_e70f_8cc4de02b8c2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.parser.ts lines 232–239
function getNodeMaxDuration(node: ExplainNode): number {
const nodeDuration = node.actualTime ? node.actualTime.end - node.actualTime.start : 0
const childrenMax = node.children.reduce(
(max, child) => Math.max(max, getNodeMaxDuration(child)),
0
)
return Math.max(nodeDuration, childrenMax)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getNodeMaxDuration() do?
getNodeMaxDuration() is a function in the supabase codebase.
What calls getNodeMaxDuration()?
getNodeMaxDuration() is called by 1 function(s): calculateMaxDuration.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free