forked from hydro-project/hydro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88dd9b7
commit 00d28a0
Showing
5 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
.../src/snapshots/hydroflow_plus__profiler__tests__predicate_pushdown_through_map-2.snap.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: hydroflow_plus/src/profiler.rs | ||
assertion_line: 62 | ||
expression: "&pushed_down.ir" | ||
--- | ||
[ | ||
ForEach { | ||
f: { use crate :: __staged :: profiler :: tests :: * ; | n | println ! ("{}" , n) }, | ||
input: Map { | ||
f: { use crate :: __staged :: profiler :: * ; let counters_copy = Fake ; let my_id = 0u32 ; let context = & context ; let my_id = 32668u32 ; let counters = Fake ; let my_id = 32668u32 ; { counters_copy . borrow_mut () [my_id as usize] = 0 ; move | v | { hydroflow_plus :: profiler :: increment_counter (context . current_tick () , my_id , & mut counters . borrow_mut () [my_id as usize]) ; v } } }, | ||
input: Map { | ||
f: { use crate :: __staged :: profiler :: tests :: * ; | v | v + 1 }, | ||
input: Map { | ||
f: { use crate :: __staged :: profiler :: * ; let counters_copy = Fake ; let my_id = 1u32 ; let context = & context ; let my_id = 32668u32 ; let counters = Fake ; let my_id = 32668u32 ; { counters_copy . borrow_mut () [my_id as usize] = 0 ; move | v | { hydroflow_plus :: profiler :: increment_counter (context . current_tick () , my_id , & mut counters . borrow_mut () [my_id as usize]) ; v } } }, | ||
input: Persist( | ||
Map { | ||
f: { use crate :: __staged :: profiler :: * ; let counters_copy = Fake ; let my_id = 2u32 ; let context = & context ; let my_id = 32668u32 ; let counters = Fake ; let my_id = 32668u32 ; { counters_copy . borrow_mut () [my_id as usize] = 0 ; move | v | { hydroflow_plus :: profiler :: increment_counter (context . current_tick () , my_id , & mut counters . borrow_mut () [my_id as usize]) ; v } } }, | ||
input: Source { | ||
source: Iter( | ||
{ use crate :: __staged :: profiler :: tests :: * ; 0 .. 10 }, | ||
), | ||
location_id: 0, | ||
}, | ||
}, | ||
), | ||
}, | ||
}, | ||
}, | ||
}, | ||
] |
21 changes: 21 additions & 0 deletions
21
...us/src/snapshots/hydroflow_plus__profiler__tests__predicate_pushdown_through_map.snap.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
source: hydroflow_plus/src/profiler.rs | ||
assertion_line: 57 | ||
expression: "&built.ir" | ||
--- | ||
[ | ||
ForEach { | ||
f: { use crate :: __staged :: profiler :: tests :: * ; | n | println ! ("{}" , n) }, | ||
input: Map { | ||
f: { use crate :: __staged :: profiler :: tests :: * ; | v | v + 1 }, | ||
input: Persist( | ||
Source { | ||
source: Iter( | ||
{ use crate :: __staged :: profiler :: tests :: * ; 0 .. 10 }, | ||
), | ||
location_id: 0, | ||
}, | ||
), | ||
}, | ||
}, | ||
] |