GGE.py

Sat, 08 Mar 2014 13:55:46 +0200

author
larukedi
date
Sat, 08 Mar 2014 13:55:46 +0200
changeset 401
85c7261e590a
parent 350
00b5c60006e0
permissions
-rwxr-xr-x

added LICENSE and README.md files

import gdb

class gge_utils_PerformanceTimerPrinter:
	def __init__(self, val):
		self.val=val
		
	def to_string(self):
		return self.val['passed']
	


def lookup_type(val):
     if str(val.type) == 'gge::utils::PerformanceTimer':
        return gge_utils_PerformanceTimerPrinter(val)
	
     return None


gdb.pretty_printers.append(lookup_type)

mercurial