1 //
2 // Copyright (c) 2010-2018 Antmicro
3 // Copyright (c) 2011-2015 Realtime Embedded
4 //
5 // This file is licensed under the MIT License.
6 // Full license text is available in 'licenses/MIT.txt'.
7 //
8 using System;
9 using Antmicro.Renode.UserInterface;
10 
11 namespace Antmicro.Renode.Plugins.TracePlugin
12 {
13     [Plugin(Name = "tracer", Description = "Tracing plugin", Version = "0.1", Vendor = "Antmicro")]
14     public class TracePlugin : IDisposable
15     {
TracePlugin(Monitor monitor)16         public TracePlugin(Monitor monitor)
17         {
18             this.monitor = monitor;
19             traceCommand = new TraceCommand(monitor);
20             monitor.RegisterCommand(traceCommand);
21         }
22 
Dispose()23         public void Dispose()
24         {
25             monitor.UnregisterCommand(traceCommand);
26         }
27 
28         private readonly TraceCommand traceCommand;
29         private readonly Monitor monitor;
30     }
31 }
32 
33