You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wiki only has single-file api usage examples. I try to use the public static CallGraph makeScriptCG(SourceModule[] scripts, CGBuilderType builderType, IRFactory<IMethod> irFactory) api for multi-file call graph generation.
The output results only contain the edge between the fake root and the file node under the filePath folder.
No other information is output, which is very different from the output of a single file.
Call graph stats:
Nodes: 14
Edges: 13
Methods: 14
Bytecode Bytes: 0
Node: synthetic < JavaScriptLoader, LFakeRoot, fakeRootMethod()V > Context: Everywhere
- JSCall@1
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/apply.js> Context: Everywhere
- JSCall@3
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/bind.js> Context: Everywhere
- JSCall@5
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/call.js> Context: Everywhere
- JSCall@7
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/callback.js> Context: Everywhere
- JSCall@9
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/closure.js> Context: Everywhere
- JSCall@11
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/dynamic_property.js> Context: Everywhere
- JSCall@13
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/eval.js> Context: Everywhere
- JSCall@15
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/helloworld.js> Context: Everywhere
- JSCall@17
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/iife.js> Context: Everywhere
- JSCall@19
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/prototype.js> Context: Everywhere
- JSCall@21
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/prototype_chain.js> Context: Everywhere
- JSCall@23
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/unknown_property.js> Context: Everywhere
- JSCall@25
-> Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/with.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/apply.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/bind.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/call.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/callback.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/closure.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/dynamic_property.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/eval.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/helloworld.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/iife.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/prototype.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/prototype_chain.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/unknown_property.js> Context: Everywhere
Node: <Code body of functionL/D:/Project/JavaScriptCGUtil/src/test/js-benchmark1/with.js> Context: Everywhere
How can i get correct call graph of multiplejs files?
The text was updated successfully, but these errors were encountered:
The wiki only has single-file api usage examples. I try to use the
public static CallGraph makeScriptCG(SourceModule[] scripts, CGBuilderType builderType, IRFactory<IMethod> irFactory)
api for multi-file call graph generation.The complete code is as follows:
The output results only contain the edge between the fake root and the file node under the
filePath
folder.No other information is output, which is very different from the output of a single file.
How can i get correct call graph of multiplejs files?
The text was updated successfully, but these errors were encountered: