mirror of
https://github.com/enso-org/enso.git
synced 2024-11-27 18:12:31 +03:00
662992eb37
Logging: Replace tracing with an efficient logging implementation, with 0-runtime cost for disabled log levels. (https://www.pivotaltracker.com/story/show/183755412) Profiling: Support submitting `profiler` events to the User Timing Web API, so that measurements can be viewed directly in the browser. (https://www.pivotaltracker.com/story/show/184003550) # Important Notes Logging interface: - The macros (`warn!`, etc.) now take standard `format_args!` arguments (the tracing implementations accepted a broader syntax). - Compile-time log levels can now be set through the CLI, like so: `./run ide start --log-level=trace --uncollapsed-log-level=info` Profiling: - The hotkey Ctrl+Alt+Shift+P submits all `profiler` events logged since the application was loaded to the Web API, so that they can then be viewed with the browser's developer tools. Note that standard tools are not able to represent async task lifetimes or metadata; this is a convenient interface to a subset of `profiler` data. - As an alternative interface, a runtime flag enables continuous measurement submission. In the browser it can be set through a URL parameter, like http://localhost:8080/?emit_user_timing_measurements=true. Note that this mode significantly impacts performance.
65 lines
1.3 KiB
TOML
65 lines
1.3 KiB
TOML
[package]
|
|
name = "enso-web"
|
|
version = "0.1.0"
|
|
authors = ["Enso Team <contact@enso.org>"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
|
|
[features]
|
|
default = ["console_error_panic_hook"]
|
|
|
|
[dependencies]
|
|
enso-debug-api = { path = "../debug-api" }
|
|
console_error_panic_hook = { version = "0.1.6", optional = true }
|
|
failure = { version = "0.1.5" }
|
|
gloo-timers = { version = "0.2.1", features = ["futures"] }
|
|
js-sys = { version = "0.3.28" }
|
|
nalgebra = { version = "0.26.1" }
|
|
wasm-bindgen = { workspace = true }
|
|
derivative = "2.2.0"
|
|
enso-logging = { path = "../logging" }
|
|
enso-shapely = { path = "../shapely" }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
async-std = { version = "1.5.0" }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3.4"
|
|
features = [
|
|
'Blob',
|
|
'Document',
|
|
'Node',
|
|
'Element',
|
|
'HtmlElement',
|
|
'HtmlDivElement',
|
|
'HtmlHeadElement',
|
|
'HtmlCollection',
|
|
'CssStyleDeclaration',
|
|
'HtmlCanvasElement',
|
|
'WebGlBuffer',
|
|
'WebGlRenderingContext',
|
|
'WebGl2RenderingContext',
|
|
'CanvasRenderingContext2d',
|
|
'WebGlProgram',
|
|
'WebGlShader',
|
|
'Window',
|
|
'Navigator',
|
|
'console',
|
|
'Performance',
|
|
'Event',
|
|
'MouseEvent',
|
|
'EventTarget',
|
|
'Text',
|
|
'DomRect',
|
|
'DomRectReadOnly',
|
|
'Location',
|
|
'ReadableStream',
|
|
'AddEventListenerOptions',
|
|
'KeyboardEvent',
|
|
'WheelEvent',
|
|
]
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = { workspace = true }
|