'With the C{savestats} option specified,
L{app.CProfileRunner.run} should save the raw stats object
instead of a summary output.'

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'])
