Skip to content
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

Add Language Server benchmarking tool #3578

Merged
merged 31 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,4 @@ test-results

*.ir
*.meta
.enso/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@
[3531]: https://github.com/enso-org/enso/pull/3531
[3562]: https://github.com/enso-org/enso/pull/3562
[3538]: https://github.com/enso-org/enso/pull/3538
[3578]: https://github.com/enso-org/enso/pull/3578
4e6 marked this conversation as resolved.
Show resolved Hide resolved

# Enso 2.0.0-alpha.18 (2021-10-12)

Expand Down
81 changes: 75 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ members = [
"lib/rust/parser/src/syntax/tree/builder",
"lib/rust/parser/generate-java",
"lib/rust/profiler/data",
"integration-test"
"integration-test",
"tools/language-server/logstat",
"tools/language-server/wstest"
]
# The default memebers are those we want to check and test by default.
default-members = ["app/gui", "lib/rust/*"]
Expand Down
12 changes: 12 additions & 0 deletions tools/language-server/logstat/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "logstat"
version = "0.1.0"
authors = ["Enso Team <[email protected]>"]
edition = "2021"

[dependencies]
clap = { version = "3", features = ["derive"] }
lazy_static = "1.4.0"
regex = "1.6.0"
time = { version = "0.3", features = ["formatting", "parsing"] }
tokio = { version = "1", features = ["full"] }
9 changes: 9 additions & 0 deletions tools/language-server/logstat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# logstat

The tool for analyzing performance from the logs output. It takes the log file
and the specification file containing the log entries to look for. Then it can
extract the operations from logs and calculate the durations and averages of
each operation.

Logstat is supposed to be used together with `wstest` tool. Take a look at
`wstest/benchmarks` directory of example usages.
4e6 marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 7 additions & 0 deletions tools/language-server/logstat/apply-edit-spec.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[org.enso.jsonrpc.JsonRpcServer] Received text message: { "jsonrpc": "2.0", "method": "text/applyEdit"
[org.enso.languageserver.protocol.json.JsonConnectionController] received handled Request(ApplyEdit
[org.enso.languageserver.runtime.RuntimeConnector] received handled Request(None,EditFileNotification
[enso] Executing command: EditFileCmd...
[enso] Job EnsureCompiledJob finished
[enso] Visualisation computed
[org.enso.languageserver.runtime.ContextRegistry] received handled VisualisationUpdate
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[org.enso.jsonrpc.JsonRpcServer] Received text message: { "jsonrpc": "2.0", "method": "text/applyExpressionValue"
[org.enso.languageserver.protocol.json.JsonConnectionController] received handled Request(ApplyExpressionValue
[org.enso.languageserver.runtime.RuntimeConnector] received handled Request(None,SetExpressionValueNotification
[enso] Executing command: SetExpressionValueCmd
[enso] Job EnsureCompiledJob finished
[enso] Visualisation computed
[org.enso.languageserver.runtime.ContextRegistry] received handled VisualisationUpdate
Loading