Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp in logs when --log-level is debug or less #2134

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

marius-pelegrin-arm
Copy link
Contributor

When running GFXReconstruct in automation, it can be useful to have timestamps in front of each message for debug purpose.
This commit add the boot time in front of each logged message on desktop platforms (linux/windows) if log-level is debug.

Here's an example of logs with this commit:

GFXReconstruct Version 1.0.5-jenkins-c790995d (7d059ae*) Release
Vulkan Header Version 1.4.304
[gfxrecon][681347.146449] DEBUG - Failed to connect to an X server
[gfxrecon][681347.221838] DEBUG - Skip vkGetPhysicalDeviceSurfaceSupportKHR for offscreen.
[gfxrecon][681347.462342] DEBUG - Skip vkGetPhysicalDeviceSurfaceCapabilitiesKHR for offscreen.
[gfxrecon][681347.462359] DEBUG - Skip vkGetPhysicalDeviceSurfaceFormatsKHR for offscreen.
[gfxrecon][681347.462378] DEBUG - Skip vkGetPhysicalDeviceSurfaceFormatsKHR for offscreen.
[gfxrecon][681347.462382] DEBUG - Skip vkGetPhysicalDeviceSurfacePresentModesKHR for offscreen.
[gfxrecon][681347.462385] DEBUG - Skip vkGetPhysicalDeviceSurfacePresentModesKHR for offscreen.
[gfxrecon][681347.462521] DEBUG - Skipping window resize for VkSurface object (ID = 2) without an associated window
[gfxrecon][681348.469331] DEBUG - Frame 1 memory (mb): 716.02 max RSS, 716.02 current RSS, 3542.41 available
[gfxrecon][681348.474590] DEBUG - Frame 2 memory (mb): 716.14 max RSS, 716.14 current RSS, 3542.41 available
[gfxrecon][681348.479575] DEBUG - Frame 3 memory (mb): 716.14 max RSS, 716.14 current RSS, 3542.41 available
[gfxrecon][681348.485825] DEBUG - Frame 4 memory (mb): 716.14 max RSS, 716.14 current RSS, 3542.41 available
[gfxrecon][681348.494195] DEBUG - Frame 5 memory (mb): 716.27 max RSS, 716.27 current RSS, 3542.41 available
[gfxrecon][681348.502483] DEBUG - Frame 6 memory (mb): 716.27 max RSS, 716.27 current RSS, 3542.41 available
[gfxrecon][681348.511178] DEBUG - Frame 7 memory (mb): 716.27 max RSS, 716.27 current RSS, 3542.41 available
[gfxrecon][681348.519809] DEBUG - Frame 8 memory (mb): 716.27 max RSS, 716.27 current RSS, 3542.41 available
[gfxrecon][681348.525914] DEBUG - Frame 9 memory (mb): 716.89 max RSS, 716.89 current RSS, 3541.91 available
[gfxrecon][681348.560585] INFO - WriteBmpImage(): Writing file "/tmp/gfxrt/device/UM6XJJ-2/QSNO25/X67K2W/LJMHNI/screenshot_frame_10.bmp"
[gfxrecon][681348.578069] DEBUG - Frame 10 memory (mb): 727.02 max RSS, 727.02 current RSS, 3521.73 available
Load time: 0.000000 seconds (frame 1)
Total time: 1.432489 seconds
Measured FPS: 250.194088 fps, 0.003997 seconds, 1 frame, 1 loop, framerange [9-10)```

Change-Id: If0b42878a87748f947cc5419caa36069cfd7f99b
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 418856.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 6614 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 6614 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants