1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| import time
import csv
class Profile_loading${Name}(object) :
'''
@Script: ${module}.py
@Author: ${user}
@Created on ${date}
@Description: ${cursor}
@Req:
@Destructive: no
'''
def __init__(self, project=None, profile=None, measure=None):
self.project=project
self.profile=profile
self.measure=measure
self.timing_list=[]
self.loading_list=[]
def process(self):
Log.LogInfo(" ##------------------------ PROFILE 1 LOADING PROCESS ------------------------")
for i in range(0,2):
'''
loading....
'''
self.loading_list.append(loading_time)
for i in range(0, len(self.measure)):
self.timing_list.append(self.measure[i] + self.loading_list[i])
return self.timing_list, self.loading_list
#=================================================================
if __name__ == "__main__":
Profile_loading = Profile_loading(project='P1', profile='c:\User\Profiles\profile1.txt', measure=[2.33,5.36,4.23])
Profile_loading.process() |
Partager