def disable_profiling(profile, service, signal, frame):
 current_time = strftime('%Y%m%d%H%M%S')
 path = FilePath('/var/lib/flocker')
 path = path.child('profile-{service}-{current_time}'.format(service=service, current_time=current_time))
 profile.dump_stats(path.path)

def disable_profiling ( profile , service , signal , frame ) : current_time = strftime ( '%Y%m%d%H%M%S' ) path = FilePath ( '/var/lib/flocker' ) path = path . child ( 'profile-{service}-{current_time}' . format ( service = service , current_time = current_time ) ) profile . dump_stats ( path . path )
disable profiling of a flocker service .