Ejemplo n.º 1
0
    def exit(self, frame, arg, excepted):
        startTime = self.current.acc.t_startTime
        elapsedTime = time.time() - startTime

        self.current.acc.startTime = long(startTime * 1000.0 * 1000.0 * 1000.0)
        self.current.acc.elapsedTime = long(elapsedTime * 1000.0 * 1000.0 * 1000.0)
        if excepted:
            (exception, value, traceback) = arg
            self.current.acc.exceptionId = exceptionObject(exception, value, traceback).id

        # print('EXIT - '+str(self.current))
        if not excepted:
            self.current = self.nodes.pop()
Ejemplo n.º 2
0
    def exit(self, frame, arg, excepted):
        if '__package__' in frame.f_globals.keys() and frame.f_globals['__package__'] == 'jandy':
            return

        # print('---- EXIT: '+str(frame.f_globals))
        startTime = self.current['acc']['t_startTime']
        elapsedTime = time.time() - startTime

        self.current['acc']['startTime'] = math.floor(startTime * 1000.0 * 1000.0 * 1000.0)
        self.current['acc']['elapsedTime'] = math.floor(elapsedTime * 1000.0 * 1000.0 * 1000.0)
        if excepted:
            (exception, value, traceback) = arg
            self.current['acc']['exceptionId'] = exceptionObject(exception, value, traceback)['id']

        # print('EXIT - '+str(self.current))
        if not excepted:
            self.current = self.nodes.pop()
Ejemplo n.º 3
0
    def exit(self, frame, arg, excepted):
        if '__package__' in frame.f_globals.keys(
        ) and frame.f_globals['__package__'] == 'jandy':
            return

        # print('---- EXIT: '+str(frame.f_globals))
        startTime = self.current['acc']['t_startTime']
        elapsedTime = time.time() - startTime

        self.current['acc']['startTime'] = math.floor(startTime * 1000.0 *
                                                      1000.0 * 1000.0)
        self.current['acc']['elapsedTime'] = math.floor(elapsedTime * 1000.0 *
                                                        1000.0 * 1000.0)
        if excepted:
            (exception, value, traceback) = arg
            self.current['acc']['exceptionId'] = exceptionObject(
                exception, value, traceback)['id']

        # print('EXIT - '+str(self.current))
        if not excepted:
            self.current = self.nodes.pop()