chore: add more logging

This commit is contained in:
Ilya Zlobintsev
2023-11-04 14:48:19 +02:00
parent 54c007b9b3
commit ca3292fd5b
2 changed files with 4 additions and 2 deletions

View File

@@ -191,6 +191,7 @@ impl GpuController {
#[cfg(feature = "libdrm_amdgpu_sys")]
fn get_drm_info(&self) -> Option<DrmInfo> {
trace!("Reading DRM info");
let drm_handle = self.drm_handle.as_ref();
let drm_memory_info =

View File

@@ -1,13 +1,14 @@
use std::borrow::Cow;
use crate::fork::run_forked;
use lact_schema::{VulkanDriverInfo, VulkanInfo};
use std::borrow::Cow;
use tracing::trace;
use vulkano::{
instance::{Instance, InstanceCreateInfo},
VulkanLibrary,
};
pub fn get_vulkan_info<'a>(vendor_id: &'a str, device_id: &'a str) -> anyhow::Result<VulkanInfo> {
trace!("Reading vulkan info");
let vendor_id = u32::from_str_radix(vendor_id, 16)?;
let device_id = u32::from_str_radix(device_id, 16)?;