MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / report

Method report

detrsmpl/utils/demo_utils.py:786–803  ·  view source on GitHub ↗

Report timing information. Returns: dict: The key is the timer name and the value is the \ corresponding average time consuming.

(self, key=None)

Source from the content-addressed store, hash-verified

784 self._record[timer_name].update(timer.since_start())
785
786 def report(self, key=None):
787 """Report timing information.
788
789 Returns:
790 dict: The key is the timer name and the value is the \
791 corresponding average time consuming.
792 """
793 result = {
794 name: r.average() * 1000.
795 for name, r in self._record.items()
796 }
797
798 if '_FPS_' in result:
799 result['_FPS_'] = 1000. / result.pop('_FPS_')
800
801 if key is None:
802 return result
803 return result[key]
804
805 def report_strings(self):
806 """Report timing information in texture strings.

Callers 1

report_stringsMethod · 0.95

Calls 2

averageMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected