VirtualBox

Changeset 77703 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 14, 2019 4:47:54 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129345
Message:

BVGA,Display,FE/Qt: Don't flood the release log with screen updates message (Debian testing guest), changing the LogRel statements to LogRel2. Display will LogRel actual screen size, position, flag changes (but not VRAM address). Besides being extremely noisy it also slows down guest graphics as each release log message is flushed to the disk. PS. UI folks, we don't break log messages as this reduces the grep-ability.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r77370 r77703  
    766766    /* Widget resize is NOT thread-safe and *probably* never will be,
    767767     * We have to notify machine-view with the async-signal to perform resize operation. */
    768     LogRel(("GUI: UIFrameBufferPrivate::NotifyChange: Screen=%lu, Origin=%lux%lu, Size=%lux%lu, Sending to async-handler\n",
    769             (unsigned long)uScreenId,
    770             (unsigned long)uX, (unsigned long)uY,
    771             (unsigned long)uWidth, (unsigned long)uHeight));
     768    LogRel2(("GUI: UIFrameBufferPrivate::NotifyChange: Screen=%lu, Origin=%lux%lu, Size=%lux%lu, Sending to async-handler\n",
     769             (unsigned long)uScreenId,
     770             (unsigned long)uX, (unsigned long)uY,
     771             (unsigned long)uWidth, (unsigned long)uHeight));
    772772    emit sigNotifyChange(uWidth, uHeight);
    773773
     
    10681068void UIFrameBufferPrivate::handleNotifyChange(int iWidth, int iHeight)
    10691069{
    1070     LogRel(("GUI: UIFrameBufferPrivate::handleNotifyChange: Size=%dx%d\n", iWidth, iHeight));
     1070    LogRel2(("GUI: UIFrameBufferPrivate::handleNotifyChange: Size=%dx%d\n", iWidth, iHeight));
    10711071
    10721072    /* Make sure machine-view is assigned: */
     
    11801180    if (m_sourceBitmap.isNull())
    11811181    {
    1182         LogRel(("GUI: UIFrameBufferPrivate::performResize: Size=%dx%d, "
    1183                 "Using fallback buffer since no source bitmap is provided\n", iWidth, iHeight));
     1182        LogRel(("GUI: UIFrameBufferPrivate::performResize: Size=%dx%d, Using fallback buffer since no source bitmap is provided\n",
     1183                iWidth, iHeight));
    11841184
    11851185        /* Remember new size came from hint: */
     
    11941194    else
    11951195    {
    1196         LogRel(("GUI: UIFrameBufferPrivate::performResize: Size=%dx%d, "
    1197                 "Directly using source bitmap content\n", iWidth, iHeight));
     1196        LogRel2(("GUI: UIFrameBufferPrivate::performResize: Size=%dx%d, Directly using source bitmap content\n",
     1197                iWidth, iHeight));
    11981198
    11991199        /* Acquire source-bitmap attributes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r77667 r77703  
    338338void UIMachineView::sltHandleNotifyChange(int iWidth, int iHeight)
    339339{
    340     LogRel(("GUI: UIMachineView::sltHandleNotifyChange: Screen=%d, Size=%dx%d\n",
    341             (unsigned long)m_uScreenId, iWidth, iHeight));
     340    LogRel2(("GUI: UIMachineView::sltHandleNotifyChange: Screen=%d, Size=%dx%d\n",
     341             (unsigned long)m_uScreenId, iWidth, iHeight));
    342342
    343343    /* Some situations require frame-buffer resize-events to be ignored at all,
     
    10351035{
    10361036    /* Save guest-screen size-hint: */
    1037     LogRel(("GUI: UIMachineView::storeGuestSizeHint: "
    1038             "Storing guest-screen size-hint for screen %d as %dx%d\n",
    1039             (int)screenId(), sizeHint.width(), sizeHint.height()));
     1037    LogRel2(("GUI: UIMachineView::storeGuestSizeHint: Storing guest-screen size-hint for screen %d as %dx%d\n",
     1038             (int)screenId(), sizeHint.width(), sizeHint.height()));
    10401039    gEDataManager->setLastGuestScreenSizeHint(m_uScreenId, sizeHint, vboxGlobal().managedVMUuid());
    10411040}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette