Home
last modified time | relevance | path

Searched refs:NBLog (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/av/services/audioflinger/
DTypedLogger.h88 #define LOGT(fmt, ...) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \
93 #define LOG_HIST_TS() do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \
94 x->logEventHistTs(NBLog::EVENT_HISTOGRAM_ENTRY_TS, hash(__FILE__, __LINE__)); } while(0)
97 #define LOG_AUDIO_STATE() do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \
98 x->logEventHistTs(NBLog::EVENT_AUDIO_STATE, hash(__FILE__, __LINE__)); } while(0)
102 #define LOG_LATENCY(ms) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \
103 x->log<NBLog::EVENT_LATENCY>(ms); } while (0)
106 #define LOG_OVERRUN(ns) do { NBLog::Writer *x = tlNBLogWriter; if (x != nullptr) \
107 x->log<NBLog::EVENT_OVERRUN>(ns); } while (0)
111 #define LOG_THREAD_INFO(info) do { NBLog::Writer *x = tlNBLogWriter; \
[all …]
DFastThread.h44 virtual void setNBLogWriter(NBLog::Writer *logWriter __unused) { } in setNBLogWriter()
84 const sp<NBLog::Writer> mDummyNBLogWriter{new NBLog::Writer()};
DTypedLogger.cpp26 thread_local NBLog::Writer *tlNBLogWriter;
DFastThreadState.h47 NBLog::Writer* mNBLogWriter; // non-blocking logger
DFastCapture.h42 virtual void setNBLogWriter(NBLog::Writer *logWriter);
DFastMixer.h55 virtual void setNBLogWriter(NBLog::Writer *logWriter);
DFastMixer.cpp109 void FastMixer::setNBLogWriter(NBLog::Writer *logWriter __unused) in setNBLogWriter()
264 NBLog::thread_params_t params; in onStateChange()
DFastCapture.cpp61 void FastCapture::setNBLogWriter(NBLog::Writer *logWriter __unused) in setNBLogWriter()
DAudioFlinger.h296 sp<NBLog::Writer> newWriter_l(size_t size, const char *name);
297 void unregisterWriter(const sp<NBLog::Writer>& writer);
324 Vector< sp<NBLog::Writer> > mUnregisteredWriters;
DAudioFlinger.cpp675 sp<NBLog::Writer> AudioFlinger::newWriter_l(size_t size, const char *name) in newWriter_l()
680 return new NBLog::Writer(); in newWriter_l()
682 sp<IMemory> shared = mLogMemoryDealer->allocate(NBLog::Timeline::sharedSize(size)); in newWriter_l()
698 shared = mLogMemoryDealer->allocate(NBLog::Timeline::sharedSize(size)); in newWriter_l()
705 return new NBLog::Writer(); in newWriter_l()
708 NBLog::Shared *sharedRawPtr = (NBLog::Shared *) shared->pointer(); in newWriter_l()
709 new((void *) sharedRawPtr) NBLog::Shared(); // placement new here, but the corresponding in newWriter_l()
712 return new NBLog::Writer(shared, size); in newWriter_l()
715 void AudioFlinger::unregisterWriter(const sp<NBLog::Writer>& writer) in unregisterWriter()
/frameworks/av/services/medialog/
DMediaLogService.cpp39 mMergerShared((NBLog::Shared*) malloc(NBLog::Timeline::sharedSize(kMergeBufferSize))), in MediaLogService()
42 mMergeThread(new NBLog::MergeThread(mMerger, mMergeReader)) in MediaLogService()
59 shared->size() < NBLog::Timeline::sharedSize(size)) { in registerWriter()
62 sp<NBLog::Reader> reader(new NBLog::Reader(shared, size, name)); // Reader handled by merger in registerWriter()
63 sp<NBLog::DumpReader> dumpReader(new NBLog::DumpReader(shared, size, name)); // for dumpsys in registerWriter()
DMediaLogService.h59 Vector<sp<NBLog::DumpReader>> mDumpReaders; // protected by mLock
62 NBLog::Shared *mMergerShared;
63 NBLog::Merger mMerger;
64 NBLog::MergeReader mMergeReader;
65 const sp<NBLog::MergeThread> mMergeThread;
/frameworks/av/media/libnblog/
DTimeline.cpp23 namespace NBLog { namespace
26 NBLog::Timeline::Timeline(size_t size, void *shared)
33 NBLog::Timeline::~Timeline()
DReportPerformance.cpp48 root["type"] = NBLog::threadTypeToString(data.threadInfo.type); in dumpToJson()
65 ss << "Thread type=" << NBLog::threadTypeToString(data.threadInfo.type) in dumpHistogramsToString()
119 ss << NBLog::threadTypeToString(data.threadInfo.type) << "," << data.threadInfo.id << "\n"; in dumpRetroString()
123 if (item.first == NBLog::EVENT_UNDERRUN) { in dumpRetroString()
125 } else if (item.first == NBLog::EVENT_OVERRUN) { in dumpRetroString()
167 if (data.threadInfo.type != NBLog::FASTMIXER) { in sendToMediaMetrics()
201 const char * const typeString = NBLog::threadTypeToString(data.threadInfo.type); in sendToMediaMetrics()
DEntry.cpp30 namespace NBLog { namespace
DWriter.cpp34 namespace NBLog { namespace
DMerger.cpp44 namespace NBLog { namespace
DReader.cpp35 namespace NBLog { namespace
/frameworks/av/media/libnblog/include/media/nblog/
DPerformanceAnalysis.h155 NBLog::thread_info_t threadInfo{};
156 NBLog::thread_params_t threadParams{};
164 std::deque<std::pair<NBLog::Event, int64_t /*timestamp*/>> snapshots;
DMerger.h40 namespace NBLog {
54 void addReader(const sp<NBLog::Reader> &reader);
DReader.h37 namespace NBLog {
111 class DumpReader : public NBLog::Reader {
DTimeline.h26 namespace NBLog {
DEvents.h26 namespace NBLog {
DWriter.h35 namespace NBLog {
DEntry.h30 namespace NBLog {

12