mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Profiling] Add color for PHP JIT frames (#147495)
Signed-off-by: Florian Lehner <florian.lehner@elastic.cloud> ## Summary Add a color for the PHP JIT frame type. Signed-off-by: Florian Lehner <florian.lehner@elastic.cloud>
This commit is contained in:
parent
99344e44d4
commit
e7f858bdbe
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