Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export enum FrameType {
Root = 0x100,
ProcessName = 0x101,
ThreadName = 0x102,
ExecutableName = 0x103,
}

const frameTypeDescriptions = {
Expand All @@ -59,8 +60,9 @@ const frameTypeDescriptions = {
[FrameType.ErrorFlag]: 'ErrorFlag',
[FrameType.Error]: 'Error',
[FrameType.Root]: 'Root',
[FrameType.ProcessName]: 'Process', // Due to OTEL semconv issues, "process name" is currently more correct than "executable name"
[FrameType.ProcessName]: 'Process',
[FrameType.ThreadName]: 'Thread',
[FrameType.ExecutableName]: 'Executable',
};

export function isErrorFrame(ft: FrameType): boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { FrameType, normalizeFrameType } from '@kbn/profiling-utils';
*/
const RED = 0xfd8484;
const ORANGE = 0xffaa00;
const DARKORANGE = 0xff8800;
const YELLOW = 0xe1e100;

export const FRAME_TYPE_COLOR_MAP = {
Expand All @@ -49,6 +50,7 @@ export const FRAME_TYPE_COLOR_MAP = {
[FrameType.Root]: [RED, RED, RED, RED],
[FrameType.ProcessName]: [ORANGE, ORANGE, ORANGE, ORANGE],
[FrameType.ThreadName]: [YELLOW, YELLOW, YELLOW, YELLOW],
[FrameType.ExecutableName]: [DARKORANGE, DARKORANGE, DARKORANGE, DARKORANGE],
};

export function frameTypeToRGB(frameType: FrameType, x: number): number {
Expand Down