diff --git a/pyre/calls_poly.py b/pyre/calls_poly.py deleted file mode 100644 index 98e125a..0000000 --- a/pyre/calls_poly.py +++ /dev/null @@ -1,23 +0,0 @@ -from collections import Counter -import pandas as pd -data=[] -import glob, json -names = "./report/*/report/pyre_callgraph.json" -#pyre_callgraph.json" - -files = {} -calls=[] -for name in glob.glob(names): - print(name) - with open(name) as fi : - for x in fi: - d = json.loads(x) - data = d["response"] - for x in list(data.keys()): # each function - if (len(data[x])): - for y in data[x]: - if "direct_target" in y: - calls.append( x +"|"+ y["direct_target"]) -df= Counter(calls) -df2=pd.DataFrame(df.most_common(), columns=["name","count"]) -df2.to_csv("function_calls2.csv")