Skip to content

[profile] Update to latest profiling middleware #3805

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

Merged
merged 2 commits into from
Apr 10, 2025
Merged

Conversation

alexander-yakushev
Copy link
Member

@alexander-yakushev alexander-yakushev commented Apr 8, 2025

Sister PRs: clojure-emacs/orchard#333, clojure-emacs/cider-nrepl#929

Final touches. Remove functions for the removed ops, display summary with the inspector, update docs.


  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the user manual (if adding/changing user-visible functionality)

Copy link
Member

@bbatsov bbatsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me overall. Perhaps you can also mention somewhere what are the limitations of the built-in profiler, so it's clearer when it's a good idea for people to use it and when to reach out to a proper profiler.

Perhaps now that you're on a roll you'll finally integrate clj-async-profiler with CIDER. 😀

CIDER has a built-in profiler that can help you identify hot-spots in your
application code. It's built on top of the https://github.com/thunknyc/profile[thunknyc/profile] library.
CIDER has a simple built-in profiler that can you to quickly measure the running
time of individual functions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add some comparison with time as in many ways our "profiler" is just a fancy interface for time (at least in my mind).

@@ -34,7 +34,6 @@
(require 'cider-client)
(require 'cider-eval)
(require 'cider-scratch)
(require 'cider-profile)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't believe we had a dependency here for one var. :D

@alexander-yakushev alexander-yakushev merged commit 340432f into master Apr 10, 2025
16 checks passed
@alexander-yakushev alexander-yakushev deleted the profile branch April 10, 2025 13:34
application code. It's built on top of the https://github.com/thunknyc/profile[thunknyc/profile] library.
CIDER has a simple built-in profiler that can you to quickly measure the running
time of individual functions. It is similar to wrapping your functions with
`time` macro, except it records every timing and displays a the summarized
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small typo -> a the summarized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants