Browse Source

disable profiling-related stuff

af/merge-core
Anton Firszov 8 years ago
parent
commit
6fb25c1f21
  1. 2
      src/ImageSharp/Common/Helpers/InliningOptions.cs
  2. 2
      tests/ImageSharp.Tests/Processing/Processors/Transforms/KernelMapTests.cs
  3. 4
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs

2
src/ImageSharp/Common/Helpers/InliningOptions.cs

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
// Uncomment this for verbose profiler results: // Uncomment this for verbose profiler results:
#define PROFILING // #define PROFILING
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp namespace SixLabors.ImageSharp

2
tests/ImageSharp.Tests/Processing/Processors/Transforms/KernelMapTests.cs

@ -21,7 +21,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
this.Output = output; this.Output = output;
} }
[Theory] [Theory(Skip = "TODO: Add asserionts")]
[InlineData(500, 200, nameof(KnownResamplers.Bicubic))] [InlineData(500, 200, nameof(KnownResamplers.Bicubic))]
[InlineData(50, 40, nameof(KnownResamplers.Bicubic))] [InlineData(50, 40, nameof(KnownResamplers.Bicubic))]
[InlineData(40, 30, nameof(KnownResamplers.Bicubic))] [InlineData(40, 30, nameof(KnownResamplers.Bicubic))]

4
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeProfilingBenchmarks.cs

@ -12,10 +12,10 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
public class ResizeProfilingBenchmarks : MeasureFixture public class ResizeProfilingBenchmarks : MeasureFixture
{ {
public const string SkipText = public const string SkipText =
#if true #if false
null; null;
#else #else
"Benchmark, enable manually"! "Benchmark, enable manually!";
#endif #endif
private readonly Configuration configuration = Configuration.CreateDefaultInstance(); private readonly Configuration configuration = Configuration.CreateDefaultInstance();

Loading…
Cancel
Save