Changeset 282193 in webkit
- Timestamp:
- Sep 8, 2021, 11:49:35 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
PAL/ChangeLog (modified) (1 diff)
-
PAL/pal/spi/cocoa/AVFoundationSPI.h (modified) (2 diffs)
-
platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r282192 r282193 1 2021-09-08 Youenn Fablet <youenn@apple.com> 2 3 Add video metrics logging to LocalSampleBufferDisplayLayer 4 https://bugs.webkit.org/show_bug.cgi?id=229930 5 6 Reviewed by Eric Carlson. 7 8 No change of behavior. 9 10 * platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm: 11 (WebCore::LocalSampleBufferDisplayLayer::enqueueSampleBuffer): 12 Log every minute AVSBDL metrics, which can help to evaluate video freeze issues. 13 1 14 2021-09-08 Kimmo Kinnunen <kkinnunen@apple.com> 2 15 -
trunk/Source/WebCore/PAL/ChangeLog
r282157 r282193 1 2021-09-08 Youenn Fablet <youenn@apple.com> 2 3 Add video metrics logging to LocalSampleBufferDisplayLayer 4 https://bugs.webkit.org/show_bug.cgi?id=229930 5 6 Reviewed by Eric Carlson. 7 8 * PAL/pal/spi/cocoa/AVFoundationSPI.h: 9 1 10 2021-09-08 Per Arne <pvollan@apple.com> 2 11 -
trunk/Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h
r279119 r282193 372 372 @property (nonatomic, readonly) unsigned long numberOfCorruptedVideoFrames; 373 373 @property (nonatomic, readonly) unsigned long numberOfDisplayCompositedVideoFrames; 374 @property (nonatomic, readonly) unsigned long numberOfNonDisplayCompositedVideoFrames; 374 375 @property (nonatomic, readonly) double totalFrameDelay; 375 376 @end … … 377 378 @interface AVVideoPerformanceMetrics (AVVideoPerformanceMetricsDisplayCompositedVideoFrames) 378 379 @property (nonatomic, readonly) unsigned long numberOfDisplayCompositedVideoFrames; 380 @property (nonatomic, readonly) unsigned long numberOfNonDisplayCompositedVideoFrames; 379 381 @end 380 382 #endif -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm
r280731 r282193 42 42 #import <wtf/cf/TypeCastsCF.h> 43 43 44 #import <pal/spi/cocoa/AVFoundationSPI.h> 45 44 46 #import <pal/cocoa/AVFoundationSoftLink.h> 45 47 … … 340 342 341 343 #if !RELEASE_LOG_DISABLED 344 constexpr size_t frameCountPerLog = 1800; // log every minute at 30 fps 345 if (!(m_frameRateMonitor.frameCount() % frameCountPerLog)) { 346 if (auto* metrics = [m_sampleBufferDisplayLayer videoPerformanceMetrics]) 347 RELEASE_LOG(WebRTC, "LocalSampleBufferDisplayLayer (%{public}s) metrics, total=%lu, dropped=%lu, corrupted=%lu, display-composited=%lu, non-display-composited=%lu (pending=%lu)", m_logIdentifier.utf8().data(), metrics.totalNumberOfVideoFrames, metrics.numberOfDroppedVideoFrames, metrics.numberOfCorruptedVideoFrames, metrics.numberOfDisplayCompositedVideoFrames, metrics.numberOfNonDisplayCompositedVideoFrames, m_pendingVideoSampleQueue.size()); 348 } 342 349 m_frameRateMonitor.update(); 343 350 #endif
Note:
See TracChangeset
for help on using the changeset viewer.