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

chore: performance profiling tools #159

Merged
merged 2 commits into from
Jan 9, 2023
Merged

chore: performance profiling tools #159

merged 2 commits into from
Jan 9, 2023

Conversation

arucil
Copy link
Contributor

@arucil arucil commented Jan 6, 2023

Submit a pull request for this project.

Why?

What?

Add Clinic.js to room-server for performance profiling during local development. For example, make run-perf -> 1 will run room-server with Clinic.js with flamegraph, when room-server is terminated with Ctrl+C, Clinic.js will generate a flamegraph like below.

image

How?

@arucil arucil requested a review from a team January 6, 2023 11:30
@arucil arucil self-assigned this Jan 6, 2023
@arucil arucil merged commit ab5623d into develop Jan 9, 2023
@arucil arucil deleted the chore/perf-scripts branch January 9, 2023 02:14
arucil added a commit that referenced this pull request Feb 3, 2023
Submit a pull request for this project.

<!-- If you have an Issue that related to this Pull Request, you can
copy this Issue's description -->

# Why? 
<!-- 
> Related to which issue?
> Why we need this pull request?
> What is the user story for this pull request? 
-->


# What?

Add Clinic.js to room-server for performance profiling during local
development. For example, `make run-perf -> 1` will run room-server with
Clinic.js with flamegraph, when room-server is terminated with Ctrl+C,
Clinic.js will generate a flamegraph like below.


![image](https://user-images.githubusercontent.com/5410312/211004013-f5dc17bc-66e1-4690-af23-85eb034de23b.png)


# How?
<!-- 
> Do you have a simple description of how this pull request is
implemented?
-->
wumanho pushed a commit to wumanho/apitable that referenced this pull request Feb 6, 2023
Submit a pull request for this project.

<!-- If you have an Issue that related to this Pull Request, you can
copy this Issue's description -->

# Why? 
<!-- 
> Related to which issue?
> Why we need this pull request?
> What is the user story for this pull request? 
-->


# What?

Add Clinic.js to room-server for performance profiling during local
development. For example, `make run-perf -> 1` will run room-server with
Clinic.js with flamegraph, when room-server is terminated with Ctrl+C,
Clinic.js will generate a flamegraph like below.


![image](https://user-images.githubusercontent.com/5410312/211004013-f5dc17bc-66e1-4690-af23-85eb034de23b.png)


# How?
<!-- 
> Do you have a simple description of how this pull request is
implemented?
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants