TraceWriter
- class catkit2.testbed.TraceWriter(host, port)
Bases:
object
A writer for performance trace logs.
This writer writes the trace log in Google JSON format, described by https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU This file can be read in by a number of trace log viewers for inspection.
- hoststr
The host which distributes the trace messages.
- portint
The port on which the host distributes the trace messages.
Methods Summary
close
()Close the writer.
open
(filename)Open the writer.
Methods Documentation
- close()
Close the writer.
- open(filename)
Open the writer.
- filenamestr
The path to the file where to write the performance trace.
- TraceWriter
The current trace writer. This is for use as a context manager.