---
uid: BenchmarkDotNet.Samples.IntroInliningDiagnoser
---

## Sample: IntroInliningDiagnoser

This sample shows how to add InliningDiagnoser with events from only one namespace (BenchmarkDotNet.Samples).

### Source code

[!code-csharp[IntroInliningDiagnoser.cs](../../../samples/BenchmarkDotNet.Samples/IntroInliningDiagnoser.cs)]