def __init__(self, args, traces, types): self.args = args self.traces = traces self.types = types self.is_interactive = sys.stdout.isatty() self.state = State() self.perf = [] # Stores metadata about processes when outputting to json # Keys: PID, values: {pname, threads} self.json_metadata = {} # Used to identify session in database self.session_name = self.args.path.split('/')[-2] # Hyphens in collections names are an incovenience in mongo self.session_name = self.session_name.replace('-', '_')
def __init__(self, args, traces, output_enabled, err_number): self.args = args self.traces = traces self.output_enabled = output_enabled self.err_number = err_number self.is_interactive = sys.stdout.isatty() self.fd_events = [] # Stores metadata about processes when outputting to json # Keys: PID, values: {pname, fds, threads} self.json_metadata = {} # Used to identify session in database if self.args.path[-1] == '/': self.session_name = self.args.path.split('/')[-3] else: self.session_name = self.args.path.split('/')[-2] # Hyphens in collections names are an incovenience in mongo self.session_name = self.session_name.replace('-', '_') self.state = State()
def __init__(self, traces): self.trace_start_ts = 0 self.trace_end_ts = 0 self.traces = traces self.state = State()
def __init__(self, traces, is_io_measured, is_connection_measured, number): self.traces = traces self.is_io_measured = is_io_measured self.is_connection_measured = is_connection_measured self.number = number self.state = State()
def __init__(self, traces): self.trace_start_ts = 0 self.trace_end_ts = 0 self.traces = traces self.latency_hist = {} self.state = State()