You're using two -m flags. The second one (-m HelloWorld.py) makes Python look for a module named HelloWorld.py, which isn’t valid syntax.
You should use:
python -m cProfile HelloWorld.py
or, if HelloWorld is an importable module (not a script file):
python -m cProfile -m HelloWorld