pyJoules/handler/print_handler.py
def process(self, trace: EnergyTrace):
        """
        Print the given sample on the standard output
        """
        for sample in trace:
            begin_string = f'begin timestamp : {sample.timestamp}; tag : {sample.tag}; duration : {sample.duration}'
            energy_strings = [f'; {domain} : {value}' for domain, value in sample.energy.items()]
            print(reduce(add, energy_strings, begin_string))

        Print the given sample on the standard output
        
Print the given sample on the standard output
Print the given sample on the standard output
def process(self, trace: EnergyTrace):
        for sample in trace:
            begin_string = f'begin timestamp : {sample.timestamp}; tag : {sample.tag}; duration : {sample.duration}'
            energy_strings = [f'; {domain} : {value}' for domain, value in sample.energy.items()]
            print(reduce(add, energy_strings, begin_string))
def process ( self , trace : EnergyTrace ) : for sample in trace : begin_string = f'begin timestamp : {sample.timestamp}; tag : {sample.tag}; duration : {sample.duration}' energy_strings = [ f'; {domain} : {value}' for domain , value in sample . energy . items ( ) ] print ( reduce ( add , energy_strings , begin_string ) )
Print the given sample on the standard output
Print the given sample on the standard output
"""
        Print the given sample on the standard output
        """
self
trace
EnergyTrace