fix(javascript): trace wrapped Electron IPC paths in large bundles (#1874)
Co-authored-by: David <17119984+fengdwx@users.noreply.github.com>
This commit is contained in:
@@ -6,8 +6,13 @@ import type { ApplicationCoverage } from "./javascriptApplicationEvidenceSchemas
|
||||
export const JAVASCRIPT_ANALYSIS_RESOURCE_DEFAULTS = {
|
||||
heapMb: 1024,
|
||||
timeoutMs: 300_000,
|
||||
semanticNodes: 100_000,
|
||||
semanticNodesPerFile: 20_000,
|
||||
} as const;
|
||||
|
||||
/** Maximum caller-selected node capacity; heap and transfer admission still apply. */
|
||||
export const JAVASCRIPT_SEMANTIC_NODE_MAXIMUM = 1_000_000;
|
||||
|
||||
/** Project observed execution limits without inventing unmeasured values. */
|
||||
export const javaScriptAnalysisCoverageLimits = (
|
||||
limits: Readonly<Record<string, JsonValue>> | null,
|
||||
@@ -37,6 +42,24 @@ export const javaScriptAnalysisCoverageLimits = (
|
||||
|
||||
/** Optional operational choices; omission keeps them out of Evidence parameters. */
|
||||
export const javaScriptAnalysisResourceControlsSchema = z.strictObject({
|
||||
max_semantic_nodes: z
|
||||
.number()
|
||||
.int()
|
||||
.min(1)
|
||||
.max(JAVASCRIPT_SEMANTIC_NODE_MAXIMUM)
|
||||
.optional()
|
||||
.describe(
|
||||
"Maximum retained semantic nodes across the application; defaults to 100000. Worker heap and parent result admission remain enforced.",
|
||||
),
|
||||
max_semantic_nodes_per_file: z
|
||||
.number()
|
||||
.int()
|
||||
.min(1)
|
||||
.max(JAVASCRIPT_SEMANTIC_NODE_MAXIMUM)
|
||||
.optional()
|
||||
.describe(
|
||||
"Maximum retained semantic nodes per source file; defaults to 20000, additionally bounded by max_semantic_nodes and memory/transfer limits.",
|
||||
),
|
||||
max_heap_mb: z
|
||||
.number()
|
||||
.int()
|
||||
|
||||
Reference in New Issue
Block a user