How to use the gprof2dot.LineParser.__init__ function in gprof2dot

To help you get started, we’ve selected a few gprof2dot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jrfonseca / gprof2dot / gprof2dot.py View on Github external
def __init__(self, infile):
        LineParser.__init__(self, infile)
        self.entries = {}
        self.entry_re = None
github jrfonseca / gprof2dot / gprof2dot.py View on Github external
def __init__(self, infile):
        LineParser.__init__(self, infile)
        self.profile = Profile()
github jrfonseca / gprof2dot / gprof2dot.py View on Github external
def __init__(self, infile):
        LineParser.__init__(self, infile)

        # Textual positions
        self.position_ids = {}
        self.positions = {}

        # Numeric positions
        self.num_positions = 1
        self.cost_positions = ['line']
        self.last_positions = [0]

        # Events
        self.num_events = 0
        self.cost_events = []

        self.profile = Profile()
        self.profile[SAMPLES] = 0
github jrfonseca / gprof2dot / gprof2dot.py View on Github external
def __init__(self, infile):
        LineParser.__init__(self, infile)
        self.profile = Profile()