scripts/profile-symbolicate.py
def ScanLocations(self, progress=False):
    """Scans through the locations and builds a set of unresolved addresses for each library."""
    if progress:
      print "Scanning for unresolved addresses..."
    last_address = None
    for thread in self.profile["threads"]:
      samples = thread["samples"]
      for sample in samples:
        frames = sample["frames"]
        for frame in frames:
          address_str = frame["location"]
          if address_str[:2] == "0x":
            address = int(address_str, 0)
            # Quick optimization since lots of times the same address appears
            # many times in a row. We only need to add each address once.
            if address != last_address:
              lib = self.Lookup(address)
              if lib:
                lib.AddUnresolvedAddress(address)
                last_address = address
Scans through the locations and builds a set of unresolved addresses for each library.
Scans through the locations and builds a set of unresolved addresses for each library.
Scans through the locations and builds a set of unresolved addresses for each library .
def ScanLocations(self, progress=False):
    if progress:
      print "Scanning for unresolved addresses..."
    last_address = None
    for thread in self.profile["threads"]:
      samples = thread["samples"]
      for sample in samples:
        frames = sample["frames"]
        for frame in frames:
          address_str = frame["location"]
          if address_str[:2] == "0x":
            address = int(address_str, 0)
            if address != last_address:
              lib = self.Lookup(address)
              if lib:
                lib.AddUnresolvedAddress(address)
                last_address = address
def ScanLocations ( self , progress = False ) : if progress : print "Scanning for unresolved addresses..." last_address = None for thread in self . profile [ "threads" ] : samples = thread [ "samples" ] for sample in samples : frames = sample [ "frames" ] for frame in frames : address_str = frame [ "location" ] if address_str [ : 2 ] == "0x" : address = int ( address_str , 0 ) if address != last_address : lib = self . Lookup ( address ) if lib : lib . AddUnresolvedAddress ( address ) last_address = address
Scans through the locations and builds a set of unresolved addresses for each library.
Scans through the locations and builds a set of unresolved addresses for each library .
"""Scans through the locations and builds a set of unresolved addresses for each library.""" # Quick optimization since lots of times the same address appears # many times in a row. We only need to add each address once.
self
progress