def test_cProfileSaveStats(self):
        config = twistd.ServerOptions()
        config["profile"] = self.mktemp()
        config["profiler"] = "cProfile"
        config["savestats"] = True
        profiler = app.AppProfiler(config)
        reactor = DummyReactor()

        profiler.run(reactor)

        self.assertTrue(reactor.called)
        self._testStats(pstats.Stats, config['profile'])
With the C{savestats} option specified,
dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/AppProfilingTests.test_cProfileSaveStats