Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Flamegraph generator for python's cProfile <https://docs.python.org/3/library/profile.html>
_ stats.
Flamegraphs <http://www.brendangregg.com/flamegraphs.html>
_ allow to
visualize relations between functions in a very compact and understandable
manner.
Flameprof
solves main problems of built-in cProfile reporting and can replace
gprof2dot <https://github.com/jrfonseca/gprof2dot>
_ because later outputs
very huge graphs with a lot of noise.
Flameprof
works with profile stat files obtained by
Profile.dump_stats() <https://docs.python.org/3/library/profile.html#profile.Profile.dump_stats>
_
call or via direct script profiling::
python -m cProfile -o myscript.prof myscript.py
Via pip::
pip install flameprof
Or you can invoke flameprof.py
directly::
python flameprof.py input.prof > output.svg
Native svg features:
Graph width, row height, font size and threshold can be set via appropriate cli options.
::
flameprof requests.prof > requests.svg
.. image:: https://cdn.rawgit.com/baverman/flameprof/master/img/requests.svg :alt: Requests profile :width: 100% :align: center
Inverted flamegraph:
.. image:: https://cdn.rawgit.com/baverman/flameprof/master/img/httplib.svg :alt: Requests profile :width: 100% :align: center
(Images are clickable)
Also flameprof
can output trace log suitable as input for flamegraph.pl.
You can treat "samples" as microseconds by default (see --log-mult
option).
::
flameprof --format=log requests.prof | flamegraph > requests-flamegraph.svg
.. image:: https://cdn.rawgit.com/baverman/flameprof/master/img/requests-flamegraph.svg :alt: Requests profile with flamegraph.pl :width: 100% :align: center
(Image is clickable)
FAQs
cProfile flamegraph generator
We found that flameprof demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.