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.
Merge branch 'profiler' of https://github.com/davidchuyaya/hydroflow …
…into profiler
- Loading branch information
Showing
5 changed files
with
59 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
31 changes: 31 additions & 0 deletions
31
.../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,31 @@ | ||
--- | ||
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 = 32710u32 ; let counters = Fake ; let my_id = 32710u32 ; { 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 = 32710u32 ; let counters = Fake ; let my_id = 32710u32 ; { 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 = 32710u32 ; let counters = Fake ; let my_id = 32710u32 ; { 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 }, | ||
), | ||
produces_delta: false, | ||
location_id: 0, | ||
}, | ||
}, | ||
), | ||
}, | ||
}, | ||
}, | ||
}, | ||
] |
22 changes: 22 additions & 0 deletions
22
...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,22 @@ | ||
--- | ||
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 }, | ||
), | ||
produces_delta: false, | ||
location_id: 0, | ||
}, | ||
), | ||
}, | ||
}, | ||
] |