Skip to content

Commit 037f593

Browse files
committed
Switch to only keep current process
1 parent 7a18bda commit 037f593

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/windows/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ impl From<CpuInstrumentationCbHandle> for *mut cpu_cb_handle_t {
5252
pub struct WindowsOsInfo {
5353
/// Kernel info
5454
pub kernel_info: Option<KernelInfo>,
55-
/// Per-CPU process list, there may be overlap between them.
56-
pub processes: HashMap<i32, Vec<Process>>,
55+
/// Per-CPU current process, there may be overlap between them.
56+
pub processes: HashMap<i32, Process>,
5757
/// Per-CPU kernel module list, there may be overlap between them.
5858
pub modules: HashMap<i32, Vec<Module>>,
5959
/// Per-CPU Symbol lookup trees
@@ -126,7 +126,7 @@ impl WindowsOsInfo {
126126
self.kernel_info
127127
.as_mut()
128128
.expect("Kernel Info must be set at this point")
129-
.process_list(
129+
.current_process(
130130
processor,
131131
download_directory.as_ref(),
132132
&mut self.not_found_full_name_cache,

0 commit comments

Comments
 (0)