- Timestamp:
- Feb 2, 2012, 1:08:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/mem_time_tests/hardware/cairns/main.py
r8326 r8328 22 22 file_path = os.path.join(scenariodir, file1) 23 23 24 spamWriter = csv.writer(open(file_path, 'wb')) 25 spamWriter.writerow(['Number Of Processors' , 'Space Used MB' , 'Time Taken s']) 24 firstex1 = open(file_path, 'wb') 25 spamWriter = csv.writer(firstex1) 26 spamWriter.writerow(['Number Of Processors' , 'Space Used MB' , 'Time Taken (s)']) 26 27 27 28 … … 48 49 print 'DONE' 49 50 50 analyse_log(scenariodir, 'metalog.csv') # interrogate log files for the memory usage information 51 analyse_log(scenariodir, os.path.join(scenariodir,'metalog.csv')) #get the memory usage from the log files 52 53 #close ex1.csv so we can read from it for a different csv reader object 54 firstex1.close() 55 56 #merge the metalog useful memory info and the ex1 recorded info into one csv file named final 57 ex1 = csv.reader(open(file_path,'rb')) 58 metalog = csv.reader(open(meta_path,'rb')) 59 final = csv.writer(open(final_path,'wb')) 60 61 62 for row in ex1: 63 d = metalog.next() 64 final.writerow([row[0],row[1],d[0],d[3],d[6],d[9],d[12]])#,d[15],d[18]])
Note: See TracChangeset
for help on using the changeset viewer.