-
Notifications
You must be signed in to change notification settings - Fork 89
perf: Add ScopedProfiler and ProfilerReporter to simplify profiling.
#2080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SharafMohamed
wants to merge
179
commits into
y-scope:main
Choose a base branch
from
SharafMohamed:profiler
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 161 commits
Commits
Show all changes
179 commits
Select commit
Hold shift + click to select a range
f8d06b2
Add dynamic programming to CLP.
SharafMohamed add11a2
Format.
SharafMohamed c82dbab
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 70f357b
Add unit-tests.
SharafMohamed 9d3e152
Format.
SharafMohamed b587085
Add missing header; Flip cast for comparison to SymbolID over unit32_t.
SharafMohamed 9d5dd94
Fix typos.
SharafMohamed c5bd43b
Remove magic number.
SharafMohamed d7cfb0d
Add missing header; Fix typo; Fix if statement.
SharafMohamed 27ebc0f
Remove thread-unsafe statics.
SharafMohamed 7a2f74e
Use uint64_t with bit shift operator.
SharafMohamed 9848096
Switch to default initialization for all false map.
SharafMohamed 3b4572b
Fix bug in string_utils and add to test-string_utils; Refactor unit-t…
SharafMohamed b633980
Format.
SharafMohamed 62f23b0
Add flags to hide test helper in production.
SharafMohamed 8b093a0
Cast to SymbolId instead of uint32_t.
SharafMohamed 49dc925
Add missing include.
SharafMohamed 7b73754
Avoid multiple get_logtype() calls; Reserve size.
SharafMohamed c8f9046
Remove more get_logtype() calls and make tokens be references into th…
SharafMohamed 9eba2d5
Switch from contains to find to avoid double lookup.
SharafMohamed 4115786
Fix typos.
SharafMohamed 8aa356a
Reduce mask size to 16 bits; Update documentation to match.
SharafMohamed e5afe04
Use propery type for bit mask.
SharafMohamed 7352fd2
Define cross-test constants in a single place; Make sure constants ar…
SharafMohamed 80354f3
Reserve var dict size.
SharafMohamed 1680f33
Cache logtype and use references into it.
SharafMohamed 5bc40ff
Replace contain with find to avoid double lookup.
SharafMohamed decca7e
Reserve possible_logtype_ids.
SharafMohamed 26c8e49
Use correct types for bit mask.
SharafMohamed 0908106
Use constants in place of magic numbers.
SharafMohamed 42d7a1c
Add paranthesis for bit operation clarity.
SharafMohamed fae5913
Add docstrings for unit-test helpers.
SharafMohamed 2bdf381
Fix some unit-tests.
SharafMohamed 764973c
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 8996cfb
Format.
SharafMohamed 7608cab
Remove consecutive wildcards from interpretation tokens; Undo changes…
SharafMohamed a130b96
Format.
SharafMohamed ae93a4e
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed f2f01d6
Add missing headers.
SharafMohamed 0eed0db
Improve docstring.
SharafMohamed e2c55a7
Use find over contains to avoid double lookup.
SharafMohamed 1cbbefd
Fix type in test to use variable_dictionary_id_t.
SharafMohamed f3ab0a5
Update docstring for consistency.
SharafMohamed ddf3e23
Fix macos ULL error.
SharafMohamed d629ae9
Replace map with bool vector.
SharafMohamed 9e3e9d9
Fix type mismatch.
SharafMohamed 06ab6a6
Add missing header; Remove unused header.
SharafMohamed ad951ae
Add missing header.
SharafMohamed f3d27b7
Format.
SharafMohamed 76ecb1d
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 9920bc9
Remove duplicate sub queries.
SharafMohamed e7dcc43
Format.
SharafMohamed ed13886
Rename to rhs.
SharafMohamed e0ecdd0
Refactor schema search classes and methods into new files; Do the sam…
SharafMohamed 134c2a4
Remove comments.
SharafMohamed 763f8be
Fix test names.
SharafMohamed c9d1da2
Fix guard format; Remove duplicate VarInfo.
SharafMohamed 39c3f18
Remove using form logtype header.
SharafMohamed 88dca33
Remove using from variable header.
SharafMohamed 7479840
Fix comment indentation.
SharafMohamed c318db4
Fix formatting.
SharafMohamed d08ce9e
Fix naming.
SharafMohamed 7caa3e7
Fix indentation.
SharafMohamed 90c2a7f
Format.
SharafMohamed fc2891e
Remove using from header.
SharafMohamed 7320c0f
Simplify ranges::find call.
SharafMohamed fd1eecd
Fix typo in docstring.
SharafMohamed 43b5b3a
Check oob.
SharafMohamed 754b4f0
Lint.
SharafMohamed 1ebb3bf
Check lexer map contains symbol.
SharafMohamed f5e1f9a
Replace magic numbers.
SharafMohamed 31fe021
Simplify ranges call.
SharafMohamed e2330cc
Remove explicit keyword; Add docstring for VarInfo.
SharafMohamed 732b452
Flip check order.
SharafMohamed 8fdd28d
Fix typo.
SharafMohamed 322390c
Improve constexpr.
SharafMohamed b33a072
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 3dc36b2
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed eed8b0b
Improve make_var_dict.
SharafMohamed dff3df0
Add REQUIRE(false).
SharafMohamed e4f39a2
Update includes to use angled braces.
SharafMohamed 426966c
Reverse order to have shorter branch first.
SharafMohamed 510c176
Update cmake.
SharafMohamed db92c0d
Move todo to issue.
SharafMohamed 934889a
Reword comments.
SharafMohamed 21046b0
Remove std.
SharafMohamed b27b92b
Update includes.
SharafMohamed 65e683d
Remove unused var.
SharafMohamed 07fff20
Add missing header.
SharafMohamed 6cc8df9
Remove unused headers.
SharafMohamed b6312f0
Fix headers.
SharafMohamed 34bdf28
Group clp headers seperately.
SharafMohamed caf160f
Fix clp compile error by reverting to old include style for Query.hpp.
SharafMohamed 45294c4
Fix clp, clo, clg, to use new include style.
SharafMohamed 43b5bd1
Make const.
SharafMohamed 3ce21e8
Replace static string.
SharafMohamed dc414a0
Switch to deque.
SharafMohamed 71a4a8f
Use traceable exception.
SharafMohamed 74e4688
Add consts.
SharafMohamed 6b56c6c
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 2ddc90a
Fix build.
SharafMohamed dc542fe
Format.
SharafMohamed aee311c
Fix build errors.
SharafMohamed 18499c2
Use braced initialization.
SharafMohamed 12c926d
Use braced initialization, again.
SharafMohamed 68660b5
Remove obvious comment.
SharafMohamed 9425afc
Use braced initialization, again x2.
SharafMohamed fa8e353
Add full stop.
SharafMohamed 3fde49f
Remove obvious comment, again.
SharafMohamed 435a008
Move using into namespace.
SharafMohamed fc47f23
Use pre-increment over post-increment.
SharafMohamed b81360d
Switch tuple to struct.
SharafMohamed 5922cb1
Move SchemaSearcherTest class into its own file.
SharafMohamed 235fa74
Add doc string.
SharafMohamed 06704c7
Move constexpr to method param.
SharafMohamed 82251ab
Add class level docstring.
SharafMohamed 66bd892
Update docstring.
SharafMohamed 8133207
Remove unused header.
SharafMohamed 73f1890
Make test vector empty.
SharafMohamed 62600b9
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed d2f4e44
Add header.
SharafMohamed 49aac57
Update using in test header.
SharafMohamed b0bea5f
Add missing namespace.
SharafMohamed ea477fb
Add missing namespace again.
SharafMohamed be6f629
Ensure mask shift doesn't exceed uint64_t size.
SharafMohamed 9e0bf19
Fix using.
SharafMohamed 2e517fb
Format.
SharafMohamed aaa69e4
Make it clear the c++ macro and cmake variable are seperate things by…
SharafMohamed 0e6f078
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed afeda55
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 8c3950a
Allow timestamped headers; Remove delimiter checking code in load_lexer.
SharafMohamed c79077c
Allow for 0 capture header to be added to search lexer.
SharafMohamed 0ca3ab2
Merge branch 'allow-headers-with-timestamp' into dfa-search-using-ls-…
SharafMohamed 2039f72
Remove unused headers and unused declarations.
SharafMohamed a8eb0c1
Remove unused headers and unused declarations.
SharafMohamed b0b1d06
Remove unneeded move operation.
SharafMohamed 065ebb9
Safety check for empty captures set.
SharafMohamed 84fb5ee
Avoid temporary object.
SharafMohamed 53e6c1b
Merge branch 'allow-headers-with-timestamp' into dfa-search-using-ls-…
SharafMohamed a1bcdb5
Add new unit-tests; Cleanup config schema.txt.
SharafMohamed 27d6d12
Revert change to schema.
SharafMohamed 176e828
Add drop_all comment.
SharafMohamed 6d4c1b9
Merge branch 'allow-headers-with-timestamp' into dfa-search-using-ls-…
SharafMohamed 8d4a3a2
Fix decompression bug.
SharafMohamed 4ecd399
Rename macro.
SharafMohamed 47705f7
Merge branch 'main' into dfa-search-using-ls-port
SharafMohamed 861bc37
Fix unit-tests based on previous change.
SharafMohamed 49e3b4d
Add scoped profiler.
SharafMohamed 810bd8f
Switch to fragmented measurements for scope profiler; Add unit-tests…
SharafMohamed 7bd1740
Use new profiling code.
SharafMohamed 74778c1
Combine continuous and fragmented measurements; Seperate runtime and …
SharafMohamed ab0da8a
Add checks for init and timer existance.
SharafMohamed f5b80b0
Add ProfilerReported documentation.
SharafMohamed 4cddd71
Add unit tests; Make reset reset all runtime measurments.
SharafMohamed 76955b6
Make sure profiler reporter is called first.
SharafMohamed 71e780a
Remove init from runtime measurements.
SharafMohamed 0ffb467
Finish unit-test for ProfilerReporter.
SharafMohamed 85e92fa
Add stats to profiling.
SharafMohamed 12554b7
Update unit-test with stats.
SharafMohamed 5017b94
Merge branch 'main' into profiler
SharafMohamed 96fbe97
Format.
SharafMohamed e5b37e0
Remove unused using.
SharafMohamed 0131b76
Remove more unused usings.
SharafMohamed e970893
Format.
SharafMohamed 027838e
Fix typo.
SharafMohamed f91b94b
Fix header guard.
SharafMohamed c2c2f41
Fix typo.
SharafMohamed a64478b
make stopwatch reset call count.
SharafMohamed d3abf6b
Typo fix.
SharafMohamed 08f7675
Document unfreed vector.
SharafMohamed a8074dc
Remove unused variable.
SharafMohamed c7afef7
Remove ScopedProfiling if profiler disabled.
SharafMohamed 22cf1cc
Update doc to specify init is only need for compile-time measurements.
SharafMohamed 449d3c0
Prevent error message spam.
SharafMohamed 5ea5af1
Indent.
SharafMohamed 25bff02
Reword error.
SharafMohamed ca945de
Update unit-test tags to fix CI.
SharafMohamed 5765cfa
Allow for disabling scopes in reporting.
SharafMohamed 2b700ad
Update unit-test.
SharafMohamed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,11 +1,9 @@ | ||
| #include "Profiler.hpp" | ||
|
|
||
| #include <memory> | ||
|
|
||
| using std::unique_ptr; | ||
| using std::vector; | ||
|
|
||
| namespace clp { | ||
| vector<Stopwatch>* Profiler::m_fragmented_measurements = nullptr; | ||
| vector<Stopwatch>* Profiler::m_continuous_measurements = nullptr; | ||
| std::unordered_map<std::string, Stopwatch> Profiler::m_runtime_measurements; | ||
| vector<Stopwatch>* Profiler::m_compile_time_measurements = nullptr; | ||
| bool Profiler::m_initialized = false; | ||
| } // namespace clp |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.