diff options
| author | 2015-05-12 02:19:44 -0300 | |
|---|---|---|
| committer | 2015-05-12 02:31:04 -0300 | |
| commit | b88c91dd3d03f1a452cdd48f0db4e010cb150753 (patch) | |
| tree | 17ddf674e020be69d03cc1c3c49c3e041377603b /src/common/logging/text_formatter.h | |
| parent | Merge pull request #748 from Subv/tls_max (diff) | |
| download | yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.tar.gz yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.tar.xz yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.zip | |
Common: Remove async logging
It provided a large increase in complexity of the logging system while
having a negligible performance impact: the usage patterns of the ring
buffer meant that each log contended with the logging thread, causing
it to effectively act as a synchronous extra buffering.
Also removed some broken code related to filtering of subclasses which
was broken since it was introduced. (Which means no one ever used that
feature anyway, since, 8 months later, no one ever complained.)
Diffstat (limited to 'src/common/logging/text_formatter.h')
| -rw-r--r-- | src/common/logging/text_formatter.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/logging/text_formatter.h b/src/common/logging/text_formatter.h index 8474a1904..5b82f043f 100644 --- a/src/common/logging/text_formatter.h +++ b/src/common/logging/text_formatter.h | |||
| @@ -5,11 +5,9 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cstddef> | 7 | #include <cstddef> |
| 8 | #include <memory> | ||
| 9 | 8 | ||
| 10 | namespace Log { | 9 | namespace Log { |
| 11 | 10 | ||
| 12 | class Logger; | ||
| 13 | struct Entry; | 11 | struct Entry; |
| 14 | 12 | ||
| 15 | /** | 13 | /** |
| @@ -31,10 +29,4 @@ void PrintMessage(const Entry& entry); | |||
| 31 | /// Prints the same message as `PrintMessage`, but colored acoording to the severity level. | 29 | /// Prints the same message as `PrintMessage`, but colored acoording to the severity level. |
| 32 | void PrintColoredMessage(const Entry& entry); | 30 | void PrintColoredMessage(const Entry& entry); |
| 33 | 31 | ||
| 34 | /** | ||
| 35 | * Logging loop that repeatedly reads messages from the provided logger and prints them to the | ||
| 36 | * console. It is the baseline barebones log outputter. | ||
| 37 | */ | ||
| 38 | void TextLoggingLoop(std::shared_ptr<Logger> logger); | ||
| 39 | |||
| 40 | } | 32 | } |