This commit is contained in:
parent
8944113b1c
commit
ad34718991
4
.gitignore
vendored
4
.gitignore
vendored
@ -129,3 +129,7 @@ dmypy.json
|
|||||||
# Pyre type checker
|
# Pyre type checker
|
||||||
.pyre/
|
.pyre/
|
||||||
.idea/
|
.idea/
|
||||||
|
*.csv
|
||||||
|
*.png
|
||||||
|
*-latency*.txt
|
||||||
|
*-rps*.txt
|
@ -268,11 +268,6 @@ class ChartCreator:
|
|||||||
directory +
|
directory +
|
||||||
"-latency.png")
|
"-latency.png")
|
||||||
pplot.clf()
|
pplot.clf()
|
||||||
print("latency min, max, avg")
|
|
||||||
print(min(csvfile.latencypersec))
|
|
||||||
print(max(csvfile.latencypersec))
|
|
||||||
print(average(csvfile.latencypersec))
|
|
||||||
print("Charted " + directory)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def analyze_hey(abs_directory, directory):
|
def analyze_hey(abs_directory, directory):
|
||||||
@ -319,25 +314,15 @@ class ChartCreator:
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
dirs = next(os.walk(os.getenv('SEARCHDIR', default='.')))[1]
|
dirs = next(os.walk(os.getenv('SEARCHDIR', default='.')))[1]
|
||||||
jobs = []
|
|
||||||
for directory in dirs:
|
for directory in dirs:
|
||||||
abs_directory = os.getenv(
|
abs_directory = os.getenv(
|
||||||
'SEARCHDIR', default='.') + '/' + directory
|
'SEARCHDIR', default='.') + '/' + directory
|
||||||
print(abs_directory)
|
print(abs_directory)
|
||||||
if 'HEY' not in abs_directory.upper():
|
if 'HEY' in abs_directory.upper():
|
||||||
process = multiprocessing.Process(
|
ChartCreator.analyze_hey(abs_directory,directory)
|
||||||
target=ChartCreator.analyze_hey, args=(
|
|
||||||
abs_directory, directory,))
|
|
||||||
jobs.append(process)
|
|
||||||
else:
|
else:
|
||||||
process_birb = multiprocessing.Process(
|
ChartCreator.analyze_birb(abs_directory,directory)
|
||||||
target=ChartCreator.analyze_birb, args=(
|
ChartCreator.analyze_input(abs_directory,directory)
|
||||||
abs_directory, directory,))
|
|
||||||
process_input = multiprocessing.Process(
|
|
||||||
target=ChartCreator.analyze_input, args=(
|
|
||||||
abs_directory, directory,))
|
|
||||||
jobs.append(process_birb)
|
|
||||||
jobs.append(process_input)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user