Haptic Controller
Loading...
Searching...
No Matches
profiler.py File Reference

Go to the source code of this file.

Namespaces

namespace  profiler
 

Functions

 profiler.disconnect ()
 

Variables

str profiler.COM_PORT = "COM11"
 
int profiler.MESSAGES_TO_SAMPLE = 1000
 
str profiler.LOCAL_FILENAME = "debug_log.txt"
 
 profiler.ser
 
 profiler.f = open(LOCAL_FILENAME, "w")
 
int profiler.messages_counted = 0
 
 profiler.line = ser.readline().decode("utf-8").strip()
 
 profiler.section_current = defaultdict(int)
 
 profiler.section_times = defaultdict(list)
 
 profiler.lines = f.readlines()[1:]
 
 profiler.segments = line.split()
 
 profiler.name
 
 profiler.action
 
 profiler.time