Ejemplo n.º 1
0
 protected static ProfileReport <T> Profile <TContext, T>(int threads, Func <TContext, Action <T> > testFactoryMethod, Func <IEnumerable <T> > payloadFactoryMethod, int samplesCount)
     where TContext : IDisposable, new()
 {
     return(ProfilerTest.Profile <T>(threads,
                                     () => new RunnerScope <TContext, T>(context => testFactoryMethod(context)),
                                     payloadFactoryMethod, samplesCount));
 }
Ejemplo n.º 2
0
 protected static ProfileReport <T> Profile <T>(int threads, Func <Action <T> > testFactoryMethod, Func <IEnumerable <T> > payloadFactoryMethod, int samplesCount)
 {
     return(ProfilerTest.Profile <T>(threads,
                                     () => new RunnerScope <T>(testFactoryMethod),
                                     payloadFactoryMethod, samplesCount));
 }