Beispiel #1
0
 def test_ystats_format(self):
     requires_yappi()
     profile.start()
     profile.is_running()  # Let if profile something
     profile.stop()
     stats = yappi.YFuncStats()
     stats.add(FILENAME)
Beispiel #2
0
 def test_is_running(self):
     requires_yappi()
     self.assertFalse(profile.is_running())
     profile.start()
     try:
         self.assertTrue(profile.is_running())
     finally:
         profile.stop()
     self.assertFalse(profile.is_running())
Beispiel #3
0
 def test_is_running(self):
     requires_yappi()
     self.assertFalse(profile.is_running())
     profile.start()
     try:
         self.assertTrue(profile.is_running())
     finally:
         profile.stop()
     self.assertFalse(profile.is_running())
Beispiel #4
0
 def test_ystats_format(self):
     requires_yappi()
     profile.start()
     profile.is_running()  # Let if profile something
     profile.stop()
     self.assertNotRaises(open_ystats, FILENAME)
Beispiel #5
0
 def profiled_function(self):
     self.assertTrue(profile.is_running())
Beispiel #6
0
 def test_disabled(self):
     profile.start()
     try:
         self.assertFalse(profile.is_running())
     finally:
         profile.stop()
Beispiel #7
0
 def test_ystats_format(self):
     requires_yappi()
     profile.start()
     profile.is_running()  # Let if profile something
     profile.stop()
     self.assertNotRaises(open_ystats, FILENAME)
Beispiel #8
0
 def profiled_function(self):
     self.assertTrue(profile.is_running())
Beispiel #9
0
 def test_disabled(self):
     profile.start()
     try:
         self.assertFalse(profile.is_running())
     finally:
         profile.stop()
Beispiel #10
0
 def test_pstats_format(self):
     requires_yappi()
     profile.start()
     profile.is_running()  # Let if profile something
     profile.stop()
     pstats.Stats(FILENAME)