MCPcopy Create free account
hub / github.com/apache/trafficserver / main

Function main

tests/gold_tests/thread_config/check_threads.py:110–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109
110def main():
111 parser = argparse.ArgumentParser()
112 parser.add_argument('-p', '--ts-path', type=str, dest='ts_path', help='path to traffic_server binary', required=True)
113 parser.add_argument(
114 '-e', '--etnet-threads', type=int, dest='etnet_threads', help='expected number of ET_NET threads', required=True)
115 parser.add_argument(
116 '-a', '--accept-threads', type=int, dest='accept_threads', help='expected number of ACCEPT threads', required=True)
117 parser.add_argument(
118 '-t', '--task-threads', type=int, dest='task_threads', help='expected number of TASK threads', required=True)
119 parser.add_argument('-c', '--aio-threads', type=int, dest='aio_threads', help='expected number of AIO threads', required=True)
120 args = parser.parse_args()
121 exit(count_threads(args.ts_path, args.etnet_threads, args.accept_threads, args.task_threads, args.aio_threads))
122
123
124if __name__ == '__main__':

Callers 1

check_threads.pyFile · 0.70

Calls 1

count_threadsFunction · 0.85

Tested by

no test coverage detected