Skip to content
Snippets Groups Projects
Commit a7402a26 authored by Pierre Augier's avatar Pierre Augier
Browse files

Update fluidsim/util/console/profile.py

parent 7afd1a07
No related branches found
No related tags found
1 merge request!162Topic/default/doc phaseshift
......@@ -243,8 +243,11 @@
return words[1][1:-1]
if kind == "pythran" in key:
key = key.split("_pythran.")[-1].rstrip(">")
return key + " (pythran)"
if "_pythran." in key:
key = key.split("_pythran.")[-1].rstrip(">") + " (pythran)"
else:
key = key.split("<built-in method ")[-1].rstrip(">")
return key
if "fluidsim.solvers." in key:
return key.split("fluidsim.solvers.")[-1][:-1]
......@@ -325,7 +328,7 @@
return pie
_kinds = ("fft_as", "pythran", ".pyx", ".py")
_kinds = ("fft_as", "pythran", ".pyx", ".py", "built-in", "numpy")
def analyze_stats(path, nb_dim=2, plot=False, threshold_long_function=0.01):
......@@ -385,7 +388,6 @@
):
time += vcaller[2]
if k == "fft_as":
if ".pyx" in key[0]:
continue
if k == "fft_as" and ".pyx" in key[0]:
continue
......@@ -391,7 +393,9 @@
if k == ".py":
if "fft_as_arg" in name:
continue
if k == ".py" and "fft_as_arg" in name:
continue
if k == "built-in" and "pythran" in name:
continue
times[k] += time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment