code: protected void publishResourceEvent(
              IPortletWindow portletWindow,
              HttpServletRequest httpServletRequest,
              long executionTime,
              boolean usedBrowserCache,
              boolean usedPortalCache) {
  
          final IPortletWindowId portletWindowId = portletWindow.getPortletWindowId();
  
          this.portalEventFactory.publishPortletResourceExecutionEvent(
                  httpServletRequest,
                  this,
                  portletWindowId,
                  executionTime,
                  usedBrowserCache,
                  usedPortalCache);
      }
docs: Publish the portlet resource event