This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
"""PyFlame Archivematica | |
Uses pyflame to monitor Archivematica processes (MCP client and server) and | |
creates SVG files using FlameGraph to visualize the resulting ptrace data. | |
Usage:: | |
$ sudo ./pyflameam.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Gist shows that passing a bytestring file path to | |
``clamd.ClamdUnixSocket.scan`` raises a UnicodeDecodeError and that decoding | |
that path to Unicode avoids the error. | |
Requires clamd be installed: https://github.com/graingert/python-clamd. | |
Usage. Run:: | |
$ python clamavtest.py |