Tried out the tool, with little success. Here's a log in case it might be helpful.
E:\code\emsdk\emscripten\master>pip install pycallgraph2
Collecting pycallgraph2
Downloading https://files.pythonhosted.org/packages/d5/7d/636c4f8359f82c5b7dc022e59f67b1f3aa7a1875fa5e9ac00e5119daf4bd/pycallgraph2-1.1.3-py2.py3-none-any.whl
Installing collected packages: pycallgraph2
Successfully installed pycallgraph2-1.1.3
WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
E:\code\emsdk\emscripten\master>pycallgraph graphviz -- emcc -c tests\hello_world.c -o a.o
'pycallgraph' is not recognized as an internal or external command,
operable program or batch file.
E:\code\emsdk\emscripten\master>dir c:\Python38-32\Scripts
Volume in drive C has no label.
Volume Serial Number is 4E5A-0CB3
Directory of c:\Python38-32\Scripts
02/14/2021 09:34 PM <DIR> .
02/14/2021 09:34 PM <DIR> ..
01/23/2020 11:54 AM 93,027 chardetect.exe
01/23/2020 11:55 AM 93,033 diff-profiles.exe
01/23/2020 11:54 AM 93,011 distro.exe
01/16/2020 05:24 PM 93,036 easy_install-3.8.exe
01/16/2020 05:24 PM 93,036 easy_install.exe
10/28/2020 11:48 AM 93,020 flake8.exe
01/23/2020 11:54 AM 426 mozdownload-script.py
01/23/2020 11:54 AM 65,536 mozdownload.exe
01/23/2020 11:54 AM 646 mozdownload.exe.manifest
01/23/2020 11:54 AM 93,012 mozinfo.exe
01/23/2020 11:55 AM 418 mozinstall-script.py
01/23/2020 11:55 AM 65,536 mozinstall.exe
01/23/2020 11:55 AM 645 mozinstall.exe.manifest
01/23/2020 11:55 AM 93,013 mozprofile.exe
01/23/2020 11:55 AM 433 mozregression-script.py
01/23/2020 11:55 AM 65,536 mozregression.exe
01/23/2020 11:55 AM 648 mozregression.exe.manifest
01/23/2020 11:55 AM 93,012 mozrunner.exe
01/23/2020 11:55 AM 422 mozuninstall-script.py
01/23/2020 11:55 AM 65,536 mozuninstall.exe
01/23/2020 11:55 AM 647 mozuninstall.exe.manifest
01/23/2020 11:55 AM 93,013 mozversion.exe
01/23/2020 11:55 AM 432 moz_add_to_system-script.py
01/23/2020 11:55 AM 65,536 moz_add_to_system.exe
01/23/2020 11:55 AM 652 moz_add_to_system.exe.manifest
01/23/2020 11:55 AM 442 moz_remove_from_system-script.py
01/23/2020 11:55 AM 65,536 moz_remove_from_system.exe
01/23/2020 11:55 AM 657 moz_remove_from_system.exe.manifest
01/16/2020 05:24 PM 93,018 pip.exe
01/16/2020 05:24 PM 93,018 pip3.8.exe
01/16/2020 05:24 PM 93,018 pip3.exe
02/14/2021 09:34 PM 590 pycallgraph
10/28/2020 11:48 AM 93,018 pycodestyle.exe
10/28/2020 11:48 AM 93,017 pyflakes.exe
01/23/2020 11:54 AM 93,013 retry.exe
01/23/2020 11:55 AM 93,019 structlog.exe
01/23/2020 11:55 AM 93,031 view-profile.exe
37 File(s) 2,074,639 bytes
2 Dir(s) 54,946,582,528 bytes free
E:\code\emsdk\emscripten\master>python c:\Python38-32\Scripts\pycallgraph graphviz -- emcc -c tests\hello_world.c -o a.o
Traceback (most recent call last):
File "c:\Python38-32\Scripts\pycallgraph", line 11, in <module>
import pycallgraph2 as __pycallgraph
ModuleNotFoundError: No module named 'pycallgraph2'
E:\code\emsdk\emscripten\master>pip3 install pycallgraph2
Requirement already satisfied: pycallgraph2 in c:\python38-32\lib\site-packages (1.1.3)
WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
E:\code\emsdk\emscripten\master>pycallgraph graphviz -- emcc -c tests\hello_world.c -o a.o
'pycallgraph' is not recognized as an internal or external command,
operable program or batch file.
Not sure what else to try after that, looks busted, oy maybe I don't have some undocumented prerequisite installed.
Or perhaps pycallgraph does not support Windows? If so, maybe worth updating the main page about supported OSes?
Tried out the tool, with little success. Here's a log in case it might be helpful.
Not sure what else to try after that, looks busted, oy maybe I don't have some undocumented prerequisite installed.
Or perhaps pycallgraph does not support Windows? If so, maybe worth updating the main page about supported OSes?