Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit a621bee

Browse files
committed
Chance occurrences of Microclimate
Signed-off-by: micgibso <MICGIBSO@uk.ibm.com>
1 parent e757408 commit a621bee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/_documentations/appmetrics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Application Metrics is available in Java, Node.js, and Swift. You can monitor th
2525

2626
## Accessing Application Metrics
2727

28-
Click **App monitor** in the Microclimate project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
28+
Click **App monitor** in the Codewind project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
2929

3030
## Enabling Application Metrics
3131

@@ -45,35 +45,35 @@ View these metrics to learn if your application is performing as intended. An ap
4545

4646
## Clicking the **Run load** button
4747

48-
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Microclimate load runner service.
48+
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Codewind load runner service.
4949

5050
## Viewing metrics information in the **Summary** tab
5151

5252
View a summary of the information from the performance metrics graphs that you saw in the **Dashboard** tab.
5353
* **HTTP Requests:** This table displays how many times an endpoint is hit. If you repeatedly run a test while making code changes, you can see how the code changes are impacting application performance.
5454
* **Environment:** This table shows information about the environment you're running, such as the OS architecture and the number of processors you have. Having this information can make troubleshooting easier if you need to contact support and provide it.
55-
* **Resource usage:** This table shows the **Average Process CPU**, which shows what Microclimate is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
55+
* **Resource usage:** This table shows the **Average Process CPU**, which shows what Codewind is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
5656

5757
## Viewing the graph in the **Profiling** tab
5858

5959
The **Profiling** tab is available only in Node.js projects. This tab pulls information from the CPU metric in the **Dashboard** tab. CPU cycles are caused by an execution of code. Receiving an endpoint doesn't cause many CPU cycles, but receiving an incoming payload can. Profiling shows you what occurs when a spike appears in the CPU metric. Each spike on the flame graph shows a call stack in the path. The width of a spike indicates how much time the CPU spends on a function. Wide spikes indicate that your CPU spends much time on a particular function and where you might want change the code to optimize it.
6060

6161
## Profiling Data Support
6262

63-
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [load testing](performance). Profiling support is only available for Node.js projects that are created through Microclimate and then profiled.
63+
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [load testing](performance). Profiling support is only available for Node.js projects that are created through Codewind and then profiled.
6464

6565
- Profiling data is written to the workspace only on a successfully completed load run. If the load run is cancelled, it won't be written to the workspace.
6666
- Run the load run for a minimum of 45 seconds for enough profiling data to be gathered to generate the `profiling.json` file.
6767
- You can configure the load run time in the `config.json` file in the `load-test` directory. The default time is 2 minutes.
6868
- Out of all the folders that contain a `profiling.json` file, the most up-to-date `profiling.json` file is the one that is displayed. The code for the older profiling data might be out of date, such as pointing to lines that have been moved.
6969

7070
To display code highlighting:
71-
1. Open a project created with Microclimate and profiled using the [performance testing](performance) feature of Microclimate. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Microclimate project.
71+
1. Open a project created with Codewind and profiled using the [performance testing](performance) feature of Codewind. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Codewind project.
7272
2. In the **Editor** view, open a JavaScript file. The Editor highlights any lines that were found in the profiling data and annotates them to show how often they were seen and where they were called from.
7373

7474
To enable or disable the profile highlighting in the code, access the profiling in one of the following ways:
7575
- Right-click in the editor and select `Toggle Profiling`.
76-
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Microclimate: Profiling: Toggle Profiling`.
76+
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Profiling: Toggle Profiling`.
7777
- Toggle the `Microprofile Profiling: Show Profiling` setting in the extensions settings.
7878

7979
For more information on sample-based profiling, see [Sample-based profiling](https://www.ibm.com/support/knowledgecenter/en/SS3KLZ/com.ibm.java.diagnostics.healthcenter.doc/topics/profiling_using.html).

0 commit comments

Comments
 (0)