Skip to content

Conversation

@rockdaboot
Copy link
Contributor

@rockdaboot rockdaboot commented Dec 19, 2024

Summary

This PR is a pre-requisite for adding aggregation by process name and by thread name to the Universal Profiling flamegraph view.

It adds three artificial node types to the flamegraph including color codes.

As a side-effect, the root node now has its own color code. Previously, it (accidentally) used the color code of "unknown" type frames.

The PR is backwards compatible, so it doesn't change anything in the UI when connecting with current Elasticsearch.
As soon as the PR for ES is merged, the new aggregations show up.

@rockdaboot rockdaboot added release_note:enhancement release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.0.0 Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Dec 19, 2024
@rockdaboot rockdaboot self-assigned this Dec 19, 2024
@rockdaboot rockdaboot requested a review from a team as a code owner December 19, 2024 16:35
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Dec 19, 2024
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor

@inge4pres inge4pres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff Tim! 🚀 thanks 🙏🏼

@rockdaboot rockdaboot force-pushed the flamegraph-executable-name branch 2 times, most recently from d0a4cf4 to 1758e7a Compare January 7, 2025 12:56
@rockdaboot rockdaboot force-pushed the flamegraph-executable-name branch from d9acea6 to 14391a0 Compare January 7, 2025 14:17
@rockdaboot rockdaboot changed the title [Profiling] Add colors for new frame types (exe name, thread name, root) [Profiling] Add colors for new frame types (process name, thread name, root) Jan 8, 2025
@rockdaboot rockdaboot enabled auto-merge (squash) January 8, 2025 07:33
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 8, 2025

💚 Build Succeeded

  • Buildkite Build
  • Commit: 875cd84
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204977-875cd8460b6f

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 1.3MB 1.3MB +126.0B
profiling 404.2KB 404.3KB +109.0B
total +235.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observabilityShared 93.3KB 93.4KB +126.0B
profiling 17.6KB 17.7KB +155.0B
total +281.0B

History

cc @rockdaboot

@rockdaboot rockdaboot merged commit bc5d8db into elastic:main Jan 8, 2025
8 checks passed
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
…, root) (elastic#204977)

## Summary
This PR is a pre-requisite for adding aggregation by process name and by
thread name to the Universal Profiling flamegraph view.

It adds three artificial node types to the flamegraph including color
codes.

As a side-effect, the root node now has its own color code. Previously,
it (accidentally) used the color code of "unknown" type frames.

The PR is backwards compatible, so it doesn't change anything in the UI
when connecting with current Elasticsearch.
As soon as [the PR for
ES](elastic/elasticsearch#119115) is merged, the
new aggregations show up.
cauemarcondes pushed a commit to cauemarcondes/kibana that referenced this pull request May 2, 2025
…, root) (elastic#204977)

## Summary
This PR is a pre-requisite for adding aggregation by process name and by
thread name to the Universal Profiling flamegraph view.

It adds three artificial node types to the flamegraph including color
codes.

As a side-effect, the root node now has its own color code. Previously,
it (accidentally) used the color code of "unknown" type frames.

The PR is backwards compatible, so it doesn't change anything in the UI
when connecting with current Elasticsearch.
As soon as [the PR for
ES](elastic/elasticsearch#119115) is merged, the
new aggregations show up.

(cherry picked from commit bc5d8db)
@cauemarcondes
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

cauemarcondes added a commit that referenced this pull request May 6, 2025
…ad name, root) (#204977) (#219979)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Profiling] Add colors for new frame types (process name, thread
name, root) (#204977)](#204977)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Tim
Rühsen","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-08T09:24:43Z","message":"[Profiling]
Add colors for new frame types (process name, thread name, root)
(#204977)\n\n## Summary\r\nThis PR is a pre-requisite for adding
aggregation by process name and by\r\nthread name to the Universal
Profiling flamegraph view.\r\n\r\nIt adds three artificial node types to
the flamegraph including color\r\ncodes.\r\n\r\nAs a side-effect, the
root node now has its own color code. Previously,\r\nit (accidentally)
used the color code of \"unknown\" type frames.\r\n\r\nThe PR is
backwards compatible, so it doesn't change anything in the UI\r\nwhen
connecting with current Elasticsearch.\r\nAs soon as [the PR
for\r\nES](elastic/elasticsearch#119115) is
merged, the\r\nnew aggregations show
up.","sha":"bc5d8db237bdef481de9e4ce37d9e460755ae418","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","release_note:skip","backport:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services"],"title":"[Profiling]
Add colors for new frame types (process name, thread name,
root)","number":204977,"url":"https://github.com/elastic/kibana/pull/204977","mergeCommit":{"message":"[Profiling]
Add colors for new frame types (process name, thread name, root)
(#204977)\n\n## Summary\r\nThis PR is a pre-requisite for adding
aggregation by process name and by\r\nthread name to the Universal
Profiling flamegraph view.\r\n\r\nIt adds three artificial node types to
the flamegraph including color\r\ncodes.\r\n\r\nAs a side-effect, the
root node now has its own color code. Previously,\r\nit (accidentally)
used the color code of \"unknown\" type frames.\r\n\r\nThe PR is
backwards compatible, so it doesn't change anything in the UI\r\nwhen
connecting with current Elasticsearch.\r\nAs soon as [the PR
for\r\nES](elastic/elasticsearch#119115) is
merged, the\r\nnew aggregations show
up.","sha":"bc5d8db237bdef481de9e4ce37d9e460755ae418"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204977","number":204977,"mergeCommit":{"message":"[Profiling]
Add colors for new frame types (process name, thread name, root)
(#204977)\n\n## Summary\r\nThis PR is a pre-requisite for adding
aggregation by process name and by\r\nthread name to the Universal
Profiling flamegraph view.\r\n\r\nIt adds three artificial node types to
the flamegraph including color\r\ncodes.\r\n\r\nAs a side-effect, the
root node now has its own color code. Previously,\r\nit (accidentally)
used the color code of \"unknown\" type frames.\r\n\r\nThe PR is
backwards compatible, so it doesn't change anything in the UI\r\nwhen
connecting with current Elasticsearch.\r\nAs soon as [the PR
for\r\nES](elastic/elasticsearch#119115) is
merged, the\r\nnew aggregations show
up.","sha":"bc5d8db237bdef481de9e4ce37d9e460755ae418"}}]}] BACKPORT-->

Co-authored-by: Tim Rühsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:project-deploy-observability Create an Observability project release_note:enhancement release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.19.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants