|
From: Manu S. <ma...@sr...> - 2016-06-02 21:33:37
|
Hi Max, The code in PrintIRs does some similar filtering, I think: https://github.com/wala/WALA/blob/master/com.ibm.wala.cast.js.rhino.test/harness-src/com/ibm/wala/cast/js/rhino/test/PrintIRs.java#L77 It works by looking at the IClass, rather than the IMethod; you can get the class for an IMethod by calling getDeclaringClass(). It then checks of the "class" name starts with Lprologue.js or Lpreamble.js. Does that fix your problem? --Manu On Wed, Jun 1, 2016 at 10:55 PM Max Schlueter <s9m...@st...> wrote: > Hi all, > > I want to better understand how WALA analyses my JS files, so I wrote > some code similiar to PDFSDG and PDFCallGraph to output a graphical > representation of the graphs. These are initially huge because they also > show all the predefined functions in preamble.js. I only want the graphs > to show the function/method calls in my JS file. > > Right now I prune the graph by applying this filter: > > if (n.getMethod().toString().contains("Lprologue.js")) { > return false; > } else { > return true; > } > > However this also filters the method calls done in my JS file. Does > anybody have a better solution to this? > > Cheers, > > Max > > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > _______________________________________________ > Wala-wala mailing list > Wal...@li... > https://lists.sourceforge.net/lists/listinfo/wala-wala > |