ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Retainer Path Analysis
*
* Finds what keeps objects alive in the heap by tracing non-weak
* reverse edges from target objects to GC roots.
*/
import { type HeapGraph, type HeapNode } from './parseSnapshot.ts';
export interface RetainerPathOptions {
/** Maximum number of paths to find per target class. Default: 5. */
maxPaths?: number;
/** Maximum BFS depth. Default: 25. */
maxDepth?: number;
/** Maximum number of instances to attempt before giving up. Default: 200. */
maxAttempts?: number;
}
/**
* Find retainer paths for all instances of a named class.
* Skips weak edges so only genuine retainers are reported.
*
* @returns The number of paths found.
*/
export function findRetainerPaths(
graph: HeapGraph,
targetName
options RetainerPathOptions
maxPaths maxDepth maxAttempts options
targets
i i graphnodeslength i
graphnodesiname targetName graphnodesitype
targetsi
pathsFound
attempts
unreachable
targetIdx targets
pathsFound maxPaths
attempts maxAttempts
attempts
path graph targetIdx maxDepth
path
graph path
pathsFound
unreachable
pathsFound unreachable
pathsFound
graph HeapGraph
nodeIndex
node HeapNode edgeName edgeType
incoming graphreverseEdgesnodeIndex
incomingedge
node graphnodesedgefromNodeIndex
edgeName edgeedgeName
edgeType edgeedgeType
graph HeapGraph id name
i i graphnodeslength i
graphnodesiid id name graphnodesiname name
i
graph HeapGraph name type HeapNode
graphnodesn nname name ntype type
graph HeapGraph startNi maxDepth
visited
parent
queue startNi
depth
visitedstartNi
depthstartNi
head
head queuelength
current queuehead
currentDepth depthcurrent
currentDepth maxDepth
node graphnodescurrent
nodetype current
path
cur current
cur
pathcur
cur parentcur
path
path
incoming graphreverseEdgescurrent
edge incoming
visitededgefromNodeIndex
visitededgefromNodeIndex
parentedgefromNodeIndex current
depthedgefromNodeIndex currentDepth
queueedgefromNodeIndex
graph HeapGraph path
idx idx pathlength idx
n graphnodespathidx
edgeLabel
idx
prevNi pathidx
edges graphreverseEdgesprevNi
edge edgese efromNodeIndex pathidx
edgeLabel edge