mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.6`: - [[Profiling] Add color for PHP JIT frames (#147495)](https://github.com/elastic/kibana/pull/147495) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Florian Lehner","email":"florianl@users.noreply.github.com"},"sourceCommit":{"committedDate":"2022-12-15T06:35:21Z","message":"[Profiling] Add color for PHP JIT frames (#147495)\n\nSigned-off-by: Florian Lehner <florian.lehner@elastic.cloud>\r\n\r\n## Summary\r\n\r\nAdd a color for the PHP JIT frame type.\r\n\r\nSigned-off-by: Florian Lehner <florian.lehner@elastic.cloud>","sha":"e7f858bdbe5539163d7e95ce6f41d973c841756e","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.7.0","v8.6.1"],"number":147495,"url":"https://github.com/elastic/kibana/pull/147495","mergeCommit":{"message":"[Profiling] Add color for PHP JIT frames (#147495)\n\nSigned-off-by: Florian Lehner <florian.lehner@elastic.cloud>\r\n\r\n## Summary\r\n\r\nAdd a color for the PHP JIT frame type.\r\n\r\nSigned-off-by: Florian Lehner <florian.lehner@elastic.cloud>","sha":"e7f858bdbe5539163d7e95ce6f41d973c841756e"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/147495","number":147495,"mergeCommit":{"message":"[Profiling] Add color for PHP JIT frames (#147495)\n\nSigned-off-by: Florian Lehner <florian.lehner@elastic.cloud>\r\n\r\n## Summary\r\n\r\nAdd a color for the PHP JIT frame type.\r\n\r\nSigned-off-by: Florian Lehner <florian.lehner@elastic.cloud>","sha":"e7f858bdbe5539163d7e95ce6f41d973c841756e"}},{"branch":"8.6","label":"v8.6.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Florian Lehner <florianl@users.noreply.github.com>
This commit is contained in:
parent
6842085e4e
commit
5d961c8ec0
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ import { ElasticFlameGraph } from './flamegraph';
|
|||
* 6 = Ruby
|
||||
* 7 = Perl
|
||||
* 8 = JavaScript
|
||||
* 9 = PHP JIT
|
||||
*
|
||||
* This is most easily achieved by mapping frame types to different color variations, using
|
||||
* the x-position we can use different colors for adjacent blocks while keeping a similar hue
|
||||
|
@ -38,6 +39,7 @@ const frameTypeToColors = [
|
|||
[0xd79ffc, 0xdfb2fd, 0xe7c5fd, 0xefd9fe],
|
||||
[0xf98bb9, 0xfaa2c7, 0xfbb9d5, 0xfdd1e3],
|
||||
[0xcbc3e3, 0xd5cfe8, 0xdfdbee, 0xeae7f3],
|
||||
[0xccfc82, 0xd1fc8e, 0xd6fc9b, 0xdbfca7],
|
||||
];
|
||||
|
||||
function frameTypeToRGB(frameType: number, x: number): number {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue