This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Tracing for wasm with bridging to native #6916
Merged
Merged
Changes from all commits
Commits
Show all changes
134 commits
Select commit
Hold shift + click to select a range
e43faeb
implement events handling, implement parent_id for spans & events
mattrutherford 5d0d25a
add events to sp_io::storage
mattrutherford 0b7f4f8
update test
mattrutherford f7981fc
add tests
mattrutherford f892b57
adjust limit
mattrutherford 159ac53
Merge remote-tracking branch 'origin/master' into tracing-events
gnunicorn ffb8713
let tracing crate handle parent_ids
gnunicorn cc3e5e3
re-enable current-id tracking
gnunicorn 89a9b73
Merge branch 'master' into tracing-events
mattrutherford 38b412c
Merge branch 'tracing-events' of github.com:paritytech/substrate into…
mattrutherford 1855a9a
add test for threads with CurrentSpan
mattrutherford 2081e5d
fix log level
mattrutherford 8da1d7a
remove redundant check for non wasm traces
mattrutherford 64d9863
remove duplicate definition in test
mattrutherford 4dfc683
Adding conditional events API
gnunicorn c4bac2d
prefer explicit parent_id over current,
mattrutherford c6d3b5c
Merge branch 'tracing-events' of github.com:paritytech/substrate into…
mattrutherford f4ee909
limit changes to client::tracing event implementation
mattrutherford 0e14ca5
remove From impl due to fallback required on parent_id
mattrutherford 0b7b16e
Merge branch 'master' into tracing-events
mattrutherford 70492f5
make tracing codecable
gnunicorn 8824a60
replace with global tracing
gnunicorn e0312a6
new tracing interface
gnunicorn b81fa39
impl TracingSubscriber in client
mattrutherford 9a4b9a2
implement access to global TracingSubscriber from primitives
mattrutherford f11e316
Merge remote-tracking branch 'origin' into ben-wasm-tracer
gnunicorn f824918
span for wasm
gnunicorn 4093d15
increment towards Wasm Tracing Subscriber implementation
mattrutherford 6a8e6b5
increment, remove sp-tracing from runtime-interface
mattrutherford a812a70
Merge branch 'master' into matt-tracing-wasm
mattrutherford 60430e1
increment, it compiles
mattrutherford 20a4479
attained original functionality with new mechanism
mattrutherford 3fb87a0
implement remaining TracingSubscriber functions
mattrutherford d3c2a96
Merge branch 'master' into ben-wasm-tracer
mattrutherford c4dfd7f
Merge branch 'matt-tracing-wasm' into ben-wasm-tracer
mattrutherford eb6730a
remove spans from decl_module
mattrutherford 1559195
add handling for encoded values
mattrutherford 6a57066
merge master
gnunicorn bd2d560
Revert "replace with global tracing"
gnunicorn ca46e02
Wasm Side Tracing
gnunicorn 36318c1
tracing on wasm
gnunicorn 5ee6320
enable tracing wasm on node-runtime
gnunicorn c319881
export all the macros in std
gnunicorn b133bcf
tracing subscriber on wasm-side only
gnunicorn 8f54143
pass spans and events over and record them
gnunicorn 94b16d0
reactivate previous code and cleanup
gnunicorn 6b2754b
further cleaning up
gnunicorn dad8480
extend the span macros, activate through executive
gnunicorn 54d62f7
tracking the actual extrinsic, too
gnunicorn e5e4c50
style
gnunicorn 59cfdb9
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn f368f1f
fixing tests
gnunicorn ed6770b
spaces -> tabs
gnunicorn f26f147
attempting to reactivate params
gnunicorn 44c92e8
activate our tests in CI
gnunicorn 0ee102a
some passing
gnunicorn da0d131
tests passing
gnunicorn fe05f04
with core lazy
gnunicorn 8ef3f6a
global tracer for wasm side with pass over
gnunicorn 7ec1784
fixing metadata referencing
gnunicorn 516a27a
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn 6f4ecb9
remove const_fn feature requirement
gnunicorn f29ce39
reenable dispatch traces
gnunicorn a1e8284
reset client tracing
gnunicorn f4c9076
further cleaning up
gnunicorn 38e8af5
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn bc4b6b0
fixing runtime-test
gnunicorn 99fcfc8
move tracing-build setup into runtime-test
gnunicorn 001b064
Merge DebugWriter from tracing and frame-support, move to sp-std
gnunicorn 564f88c
remove dangling fixme
gnunicorn bad9ad0
Docs for tracing primitives
gnunicorn 29c9da7
cleaning up a bit more
gnunicorn 8e76ca7
Wasm interface docs
gnunicorn 21fff39
optimise docs.rs setup
gnunicorn afd5ef2
adding tracing flags to uncomment
gnunicorn 8cb5800
remove brace
mattrutherford 780fab3
fixing imports
gnunicorn 0880b70
fixing broken syntax
gnunicorn 6c7cb0a
add required modules
mattrutherford a5185bd
Merge branch 'ben-wasm-tracer' of github.com:paritytech/substrate int…
mattrutherford d98f5bd
nicer formatting
gnunicorn a4b92b3
better target management
gnunicorn d2d74a9
Merge branch 'ben-wasm-tracer' of github.com:paritytech/substrate int…
mattrutherford 85dab68
adding low level storage tracing events into frame
gnunicorn da0f2b5
Merge branch 'ben-wasm-tracer' of github.com:paritytech/substrate int…
mattrutherford 7394b57
add custom Debug impl for WasmMetadata
mattrutherford 79f278d
cloning profiler
gnunicorn ec3934c
adding info about cloning profiler
gnunicorn d9e8e31
using in-scope for within calls
gnunicorn f68a8e5
proper time tracing, cleaning up println
gnunicorn 7db90f3
allow to disable tracing on runtime_interface-macro
gnunicorn a08cb44
disable tracing for wasm-tracing-interface
gnunicorn 4395a6c
simplify wasm-tracing-api
gnunicorn e779202
update client to new interface
gnunicorn 849bccf
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn c2d856d
fixing docs and tests for sp-tracing
gnunicorn 5cbae70
update integration tests
gnunicorn 4d892fa
re-activating enter_span
gnunicorn d7ab2b6
dropping FIXME, it's documented
gnunicorn 8536f77
fix formatting
gnunicorn 5194d0d
fix formatting
gnunicorn 21eddad
fix imports
gnunicorn 47cb390
more debug info
gnunicorn e3c6e0a
inform wasm about it being disabled by returning 1
gnunicorn 5fa4a8b
only one tracer, but enabled multi-all support
gnunicorn 3d67c9d
make trait pub again for tests
gnunicorn 4897926
Apply suggestions from code review
gnunicorn 00d0d1c
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn c00dd61
fixing wasm doc tests for proper usage
gnunicorn 88b5957
remove unnecessary import
gnunicorn 7419129
fixing formatting
gnunicorn 38c1e42
minor style fixes
gnunicorn 6d54ad6
downgrading wabt
gnunicorn 7ae8264
update error message for UI
gnunicorn 637d763
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn c69a51e
Fix interface test
gnunicorn 71cca7a
next attempt to fix macros
gnunicorn 97156db
geee
gnunicorn c7521ed
revert tracing on hashed for future PR
gnunicorn 7a31707
remove local macros, use originals
gnunicorn 3afa77e
we are able to convert to static items
gnunicorn 7b99c9c
implement more WasmValue types
gnunicorn 959c401
adding support to convert str, debug and encoded values
gnunicorn b9a8658
more minor fixes
gnunicorn 4e960c6
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn 4530b81
revert unsafe 'static making
gnunicorn a7c92bf
fix indentation
gnunicorn c83834b
remove commented lines
gnunicorn 5381565
bump all them tracing versions
gnunicorn 0f531bb
Merge remote-tracking branch 'origin/master' into ben-wasm-tracer
gnunicorn 6e4e60a
cleaning up docs and info
gnunicorn ed6ec09
document new flag
gnunicorn 0c17fd1
the new layered system handles span cloning better
gnunicorn e616c81
Apply suggestions from code review
gnunicorn 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
|---|---|---|
|
|
@@ -29,5 +29,7 @@ std = [ | |
| "sp-io/std", | ||
| "sp-sandbox/std", | ||
| "sp-std/std", | ||
| "sp-core/std", | ||
| "sp-runtime/std", | ||
| "sp-allocator/std", | ||
| ] | ||
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
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
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
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.
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.