Home
last modified time | relevance | path

Searched refs:LogStatistics (Results 1 – 24 of 24) sorted by relevance

/aosp12/system/logging/logd/
H A DLogStatistics.cpp40 std::atomic<size_t> LogStatistics::SizesTotal;
66 LogStatistics::LogStatistics(bool enable_statistics, bool track_total_size, in LogStatistics() function in LogStatistics
90 return LogStatistics::sizesTotal(); in sizesTotal()
126 void LogStatistics::Add(LogStatisticsElement element) { in Add()
202 void LogStatistics::Subtract(LogStatisticsElement element) { in Subtract()
253 void LogStatistics::Drop(LogStatisticsElement element) { in Drop()
290 void LogStatistics::Erase(LogStatisticsElement element) { in Erase()
327 const char* LogStatistics::UidToName(uid_t uid) const { in UidToName()
795 std::string LogStatistics::ReportInteresting() const { in ReportInteresting()
1056 uid_t LogStatistics::PidToUid(pid_t pid) { in PidToUid()
[all …]
H A DCommandListener.h30 CommandListener(LogBuffer* buf, LogTags* tags, PruneList* prune, LogStatistics* log_statistics);
39 LogStatistics* stats_;
53 LogStatistics* stats() const { return parent_->stats_; } \
H A DSerializedLogBuffer.h42 SerializedLogBuffer(LogReaderList* reader_list, LogTags* tags, LogStatistics* stats);
70 LogStatistics* stats_;
80 log_id_t log_id, LogStatistics* stats);
H A DReplayMessages.cpp231 LogStatistics stats_simple_;
234 LogStatistics stats_chatty_;
237 LogStatistics stats_serialized_;
245 stats_.reset(new LogStatistics{false, false, first_log_timestamp}); in SingleBufferOperation()
248 stats_.reset(new LogStatistics{false, false, first_log_timestamp}); in SingleBufferOperation()
252 stats_.reset(new LogStatistics{false, true, first_log_timestamp}); in SingleBufferOperation()
280 std::unique_ptr<LogStatistics> stats_;
H A DSimpleLogBuffer.h32 SimpleLogBuffer(LogReaderList* reader_list, LogTags* tags, LogStatistics* stats);
63 LogStatistics* stats() { return stats_; } in stats()
74 LogStatistics* stats_;
H A DLogKlog.h40 LogKlog(LogBuffer* buf, int fdWrite, int fdRead, bool auditd, LogStatistics* stats);
52 LogStatistics* stats_;
H A DLogAudit.h34 LogAudit(LogBuffer* buf, int fdDmesg, LogStatistics* stats);
49 LogStatistics* stats_;
H A DLogBufferElement.h46 bool FlushTo(LogWriter* writer, LogStatistics* parent, bool lastSame);
62 size_t PopulateDroppedMessage(char*& buffer, LogStatistics* parent, bool lastSame);
H A DLogStatistics.h46 class LogStatistics; variable
268 std::string format(const LogStatistics& stat, log_id_t id, uid_t uid) const;
318 std::string format(const LogStatistics& stat, log_id_t id, pid_t pid) const;
373 std::string format(const LogStatistics& stat, log_id_t id, pid_t pid) const;
402 std::string format(const LogStatistics& stat, log_id_t id, uint32_t) const;
433 std::string format(const LogStatistics& stat, log_id_t id, const std::string& key_name) const;
441 class LogStatistics {
518 LogStatistics(bool enable_statistics, bool track_total_size,
H A DRecordingLogBuffer.h31 RecordingLogBuffer(LogReaderList* reader_list, LogTags* tags, LogStatistics* stats) in RecordingLogBuffer()
H A DChattyLogBuffer.h52 LogStatistics* stats);
H A DLogBufferElement.cpp183 size_t LogBufferElement::PopulateDroppedMessage(char*& buffer, LogStatistics* stats, in PopulateDroppedMessage()
270 bool LogBufferElement::FlushTo(LogWriter* writer, LogStatistics* stats, bool lastSame) { in FlushTo()
H A DSerializedLogBuffer.cpp52 log_id_t log_id, LogStatistics* stats) REQUIRES(logd_lock) { in ClearLogsByUid()
95 LogStatistics* stats) in SerializedLogBuffer()
H A DLogBufferTest.h180 LogStatistics stats_{false, true};
H A DAndroid.bp68 "LogStatistics.cpp",
H A Dmain.cpp244 LogStatistics log_statistics(GetBoolPropertyEngSvelteDefault("logd.statistics"), in main()
H A DCommandListener.cpp45 LogStatistics* stats) in CommandListener()
H A DSimpleLogBuffer.cpp24 SimpleLogBuffer::SimpleLogBuffer(LogReaderList* reader_list, LogTags* tags, LogStatistics* stats) in SimpleLogBuffer()
H A DLogAudit.cpp51 LogAudit::LogAudit(LogBuffer* buf, int fdDmesg, LogStatistics* stats) in LogAudit()
H A DLogTags.cpp501 if (lastTotal && (LogStatistics::sizesTotal() - lastTotal) < rate_to_pmsg) { in WritePmsgEventLogTags()
671 lastTotal = LogStatistics::sizesTotal(); in WritePersistEventLogTags()
H A DSerializedLogBufferTest.cpp36 LogStatistics stats(false, true); in TEST()
H A DChattyLogBuffer.cpp44 LogStatistics* stats) in ChattyLogBuffer()
H A DLogKlog.cpp204 LogKlog::LogKlog(LogBuffer* buf, int fdWrite, int fdRead, bool auditd, LogStatistics* stats) in LogKlog()
/aosp12/system/logging/logd/fuzz/
H A Dlog_buffer_log_fuzzer.cpp48 LogStatistics* stats) { in write_log_messages()
107 LogStatistics stats(true, true); in LLVMFuzzerTestOneInput()