mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 08:03:20 +00:00
Restore main's pane-snapshot flag contract
Main asks for CreationTime on both projections; this branch's hot-path isolation went away with the async probe it served.
This commit is contained in:
@@ -110,14 +110,14 @@ describe('windows foreground inspection cost per pane', () => {
|
||||
return resolved
|
||||
}
|
||||
|
||||
it('requests only command lines on the pane snapshot', async () => {
|
||||
it('never sets the Memory flag on the snapshot', async () => {
|
||||
await queryWindowsPaneProcessInventory(shellPid(0))
|
||||
expect(flagsSeen).toHaveLength(1)
|
||||
// Memory is bit 0, and it costs the addon a second OpenProcess per process
|
||||
// carrying PROCESS_VM_READ (process.cc `GetProcessMemoryUsage`).
|
||||
expect(flagsSeen[0]! & 1).toBe(0)
|
||||
// CreationTime is isolated to ownership reads so this hot scan opens one handle per process.
|
||||
expect(flagsSeen[0]).toBe(2)
|
||||
// CommandLine (2) | CreationTime (4).
|
||||
expect(flagsSeen[0]).toBe(6)
|
||||
})
|
||||
|
||||
it('projects the shared snapshot once for the whole pane fan-out', async () => {
|
||||
|
||||
Reference in New Issue
Block a user