aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/Profiler.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-07-21 10:32:05 +0200
committerGitHub <noreply@github.com>2020-07-21 10:32:05 +0200
commit5b57c81ee14ce585161b9ac331e6e3528826b815 (patch)
tree762c571faa5715ffd0062b790099b1113faccc37 /MediaBrowser.Controller/Library/Profiler.cs
parent352dab701866b37d0dd5dcaa6343ccc256d7e837 (diff)
parent5c66f9e4716961dc40e0444c7d261dfd2e5841d7 (diff)
Merge pull request #3629 from crobibero/api-migration-merge
Api migration merge
Diffstat (limited to 'MediaBrowser.Controller/Library/Profiler.cs')
-rw-r--r--MediaBrowser.Controller/Library/Profiler.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Library/Profiler.cs b/MediaBrowser.Controller/Library/Profiler.cs
index 0febef3d3..399378a09 100644
--- a/MediaBrowser.Controller/Library/Profiler.cs
+++ b/MediaBrowser.Controller/Library/Profiler.cs
@@ -5,21 +5,21 @@ using Microsoft.Extensions.Logging;
namespace MediaBrowser.Controller.Library
{
/// <summary>
- /// Class Profiler
+ /// Class Profiler.
/// </summary>
public class Profiler : IDisposable
{
/// <summary>
- /// The name
+ /// The name.
/// </summary>
readonly string _name;
/// <summary>
- /// The stopwatch
+ /// The stopwatch.
/// </summary>
readonly Stopwatch _stopwatch;
/// <summary>
- /// The _logger
+ /// The _logger.
/// </summary>
private readonly ILogger<Profiler> _logger;
@@ -37,7 +37,6 @@ namespace MediaBrowser.Controller.Library
_stopwatch = new Stopwatch();
_stopwatch.Start();
}
- #region IDisposable Members
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
@@ -67,10 +66,9 @@ namespace MediaBrowser.Controller.Library
message = string.Format("{0} took {1} seconds.",
_name, ((float)_stopwatch.ElapsedMilliseconds / 1000).ToString("#0.000"));
}
+
_logger.LogInformation(message);
}
}
-
- #endregion
}
}