コード例 #1
0
ファイル: profiler.py プロジェクト: Edanprof/greem
 def done(self):
     self.stop()
     context = profilingContext(self.context.roots)
     # print(context.methods)
     with open("python-profiler-result.jandy", "w") as f:
         tp = TFileObjectTransport(f)
         context.write(TJSONProtocol(tp))
         tp.flush()
コード例 #2
0
ファイル: profiler.py プロジェクト: Choikoun/jandy
 def done(self):
     self.stop()
     context = profilingContext(self.context.roots())
     with open("python-profiler-result.jandy", "wt") as f:
         json.dump(context, f)
コード例 #3
0
 def done(self):
     self.stop()
     context = profilingContext(self.context.roots())
     with open("python-profiler-result.jandy", "wt") as f:
         json.dump(context, f)