@@ -63,15 +63,15 @@ def _use_gb_ram(num_gb):
63
63
'''
64
64
Function to consume GB of memory
65
65
'''
66
-
66
+
67
67
# Eat 1 GB of memory for 1 second
68
68
gb_str = ' ' * int (num_gb * 1024.0 ** 3 )
69
-
69
+
70
70
# Spin CPU
71
71
ctr = 0
72
72
while ctr < 50e6 :
73
73
ctr += 1
74
-
74
+
75
75
# Clear memory
76
76
del ctr
77
77
del gb_str
@@ -199,12 +199,6 @@ def _collect_range_runtime_stats(self, num_threads):
199
199
# Return dataframe
200
200
return runtime_results_df
201
201
202
- def test_collect_range (self ):
203
- num_threads = 8
204
- df = self ._collect_range_runtime_stats (num_threads )
205
-
206
- df .to_csv ('/root/%d_thread_df.csv' % num_threads )
207
-
208
202
# Test node
209
203
def _run_cmdline_workflow (self , num_gb , num_threads ):
210
204
'''
@@ -359,7 +353,7 @@ def _run_function_workflow(self, num_gb, num_threads):
359
353
360
354
# Test resources were used as expected in cmdline interface
361
355
@unittest .skipIf (run_profiler == False , skip_profile_msg )
362
- def tiest_cmdline_profiling (self ):
356
+ def test_cmdline_profiling (self ):
363
357
'''
364
358
Test runtime profiler correctly records workflow RAM/CPUs consumption
365
359
from a cmdline function
@@ -401,7 +395,7 @@ def tiest_cmdline_profiling(self):
401
395
402
396
# Test resources were used as expected
403
397
@unittest .skipIf (run_profiler == False , skip_profile_msg )
404
- def tiest_function_profiling (self ):
398
+ def test_function_profiling (self ):
405
399
'''
406
400
Test runtime profiler correctly records workflow RAM/CPUs consumption
407
401
from a python function
0 commit comments