VirtualBox

Changeset 77703 in vbox


Ignore:
Timestamp:
Mar 14, 2019 4:47:54 PM (6 years ago)
Author:
vboxsync
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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r77451 r77703  
    22162216    RT_COPY_VOLATILE(screen, *pScreen);
    22172217    RT_UNTRUSTED_NONVOLATILE_COPY_FENCE();
    2218     LogRel(("VBVA: InfoScreen: [%d] @%d,%d %dx%d, line 0x%x, BPP %d, flags 0x%x\n",
    2219             screen.u32ViewIndex, screen.i32OriginX, screen.i32OriginY,
    2220             screen.u32Width, screen.u32Height,
    2221             screen.u32LineSize, screen.u16BitsPerPixel, screen.u16Flags));
     2218    LogRel2(("VBVA: InfoScreen: [%d] @%d,%d %dx%d, line 0x%x, BPP %d, flags 0x%x\n",
     2219             screen.u32ViewIndex, screen.i32OriginX, screen.i32OriginY,
     2220             screen.u32Width, screen.u32Height,
     2221             screen.u32LineSize, screen.u16BitsPerPixel, screen.u16Flags));
    22222222
    22232223    /*
  • 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}
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r77451 r77703  
    919919                                   int32_t xOrigin, int32_t yOrigin, bool fVGAResize)
    920920{
    921     LogRel(("Display::handleDisplayResize: uScreenId=%d pvVRAM=%p w=%d h=%d bpp=%d cbLine=0x%X flags=0x%X\n", uScreenId,
    922             pvVRAM, w, h, bpp, cbLine, flags));
     921    LogRel2(("Display::i_handleDisplayResize: uScreenId=%d pvVRAM=%p w=%d h=%d bpp=%d cbLine=0x%X flags=0x%X\n", uScreenId,
     922             pvVRAM, w, h, bpp, cbLine, flags));
    923923
    924924    /* Caller must not hold the object lock. */
     
    957957
    958958    if (uScreenId >= mcMonitors)
     959    {
     960        LogRel(("Display::i_handleDisplayResize: mcMonitors=%u < uScreenId=%u (pvVRAM=%p w=%u h=%u bpp=%d cbLine=0x%X flags=0x%X)\n",
     961                mcMonitors, uScreenId, pvVRAM, w, h, bpp, cbLine, flags));
    959962        return VINF_SUCCESS;
     963    }
    960964
    961965    DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId];
     
    993997        h = pFBInfo->h;
    994998    }
     999
     1000    /* Log changes. */
     1001    if (   pFBInfo->w != w
     1002        || pFBInfo->h != h
     1003        || pFBInfo->u32LineSize != cbLine
     1004        /*|| pFBInfo->pu8FramebufferVRAM != (uint8_t *)pvVRAM - too noisy */
     1005        || (   !fVGAResize
     1006            && (   pFBInfo->xOrigin != xOrigin
     1007                || pFBInfo->yOrigin != yOrigin
     1008                || pFBInfo->flags != flags)))
     1009        LogRel(("Display::i_handleDisplayResize: uScreenId=%d pvVRAM=%p w=%d h=%d bpp=%d cbLine=0x%X flags=0x%X origin=%d,%d\n",
     1010                uScreenId, pvVRAM, w, h, bpp, cbLine, flags, xOrigin, yOrigin));
    9951011
    9961012    /* Update the video mode information. */
Note: See TracChangeset for help on using the changeset viewer.

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