Skip to content

[VL] Add page load time metric#10294

Merged
FelixYBW merged 1 commit into
apache:mainfrom
rui-mo:wip_page_metric
Oct 22, 2025
Merged

[VL] Add page load time metric#10294
FelixYBW merged 1 commit into
apache:mainfrom
rui-mo:wip_page_metric

Conversation

@rui-mo

@rui-mo rui-mo commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

The time spent in page load is useful for the table scan profiling, and this PR adds the page load time metric.

How was this patch tested?

UT

@github-actions

Copy link
Copy Markdown

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@rui-mo rui-mo force-pushed the wip_page_metric branch 4 times, most recently from daa5889 to 12519b3 Compare August 5, 2025 15:18
@rui-mo rui-mo force-pushed the wip_page_metric branch 2 times, most recently from 62e2c1f to b57ce1e Compare August 13, 2025 13:54
@rui-mo rui-mo changed the title [VL] Add page scan time metric [VL] Add page load time metric Aug 26, 2025
@rui-mo rui-mo force-pushed the wip_page_metric branch 2 times, most recently from 6f10f66 to f4c1ba6 Compare August 26, 2025 14:03
@FelixYBW

Copy link
Copy Markdown
Contributor

@rui-mo can you split the PR and add the two metrics in adance?

      "dataSourceAddSplitTime" -> SQLMetrics.createNanoTimingMetric(
        sparkContext,
        "data source add split time"),
      "dataSourceReadTime" -> SQLMetrics.createNanoTimingMetric(
        sparkContext,
        "data source read time"),

@FelixYBW

Copy link
Copy Markdown
Contributor

depends on facebookincubator/velox#14587

@FelixYBW

Copy link
Copy Markdown
Contributor

@rui-mo can you rebase the PR since facebookincubator/velox#14587 is merged?

@github-actions github-actions Bot removed the BUILD label Oct 22, 2025
@rui-mo rui-mo marked this pull request as ready for review October 22, 2025 10:19
@rui-mo rui-mo requested a review from FelixYBW October 22, 2025 15:05
@FelixYBW FelixYBW merged commit c3fcc4d into apache:main Oct 22, 2025
58 checks passed
FelixYBW added a commit to FelixYBW/gluten that referenced this pull request Apr 20, 2026
This commit adds a new metric 'storageReads' that counts the number of
storage read operations, complementing the existing 'storageReadBytes'
metric which tracks the total bytes read.

Changes:
- Java: Added storageReads field to Metrics.java and OperatorMetrics.java
- Scala: Added storageReads metric definition in VeloxMetricsApi.scala
- Scala: Updated BatchScanMetricsUpdater to populate the metric
- C++: Added kStorageReads to Metrics enum in Metrics.h
- C++: Updated JniWrapper.cc to pass the metric to Java
- C++: Updated WholeStageResultIterator.cc to collect the metric using
  'count' aggregation on kStorageReadBytes runtime stat

Metric type: SQLMetrics.createMetric (count-based)
Follows the pattern from PR apache#10294 (pageLoadTime metric)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants