Repository navigation
Measure image stream transports and add the image stream example (#769) #798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,902
−126
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f30f88c
Give the HTTPS browser test program the light-header unit it register…
ambroise-leclerc c78e763
Measure image streams end to end with a manual benchmark (#769)
ambroise-leclerc 8e56b53
Add the image stream example: JPEG frames on demand, typed-array pixe…
ambroise-leclerc 02764f2
Record the image stream measurement on dispatch: WebView2, WKWebView …
ambroise-leclerc b38beda
Select the image stream track and record the measurements (#769)
ambroise-leclerc bd4fe41
Use the source header's thread and allocation values (#769)
ambroise-leclerc 3c5fd2a
Record the WebView2 and WKWebView image stream measurements (#769)
ambroise-leclerc 5cea610
Merge branch '764-window-services' into 769-bench-transports
ambroise-leclerc cf32c30
Give the Jetson encoder frames a new directory removed on exit (#769)
ambroise-leclerc 38854b6
Fail the image stream benchmark when its report or a case is lost (#769)
ambroise-leclerc fec73b7
Time each decoded frame against the chunk of the same timestamp (#769)
ambroise-leclerc e025c4b
Make the host encoder timing script executable (#769)
ambroise-leclerc 84198b0
Average the codec chunk size over the chunks processed (#769)
ambroise-leclerc 7870095
Keep the benchmark alive until its application has drained the work t…
ambroise-leclerc 364ca6a
Merge branch '764-window-services' into 769-bench-transports
ambroise-leclerc f88d23a
Merge branch '764-window-services' into 769-bench-transports
ambroise-leclerc 54d3904
Name the BareNative repository in the Jetson jobs' guard (#769)
ambroise-leclerc c8ac5a1
Pin the BareNative repository in the hardware workflow audit (#769)
ambroise-leclerc ad6aaa4
Consume the installed package in C++26 only with a compiler that has …
ambroise-leclerc 469a383
Let a Jetson dispatch run the image stream measurement alone (#769)
ambroise-leclerc 029f956
Record the Jetson Orin Nano image stream figures and the encoder prob…
ambroise-leclerc f8863f7
Count the source ticks missed by a slow frame as skipped and never ca…
ambroise-leclerc 8c09c73
Record the image stream figures measured with the corrected pacing (#…
ambroise-leclerc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Manual measurement of image streams (#769, docs/IMAGE_STREAMS.md): never built by default, never a CTest case. | ||
| # cmake --build <build> --target image_stream_report | ||
| # builds image_stream_bench for the browser test frontend, runs it and writes <build>/image-streams.json. A display is | ||
| # needed (run it under xvfb-run without one). | ||
| function(webfront_add_image_stream_benchmark source) | ||
| webfront_add_test_program(image_stream_bench ImageStreamBenchmark.cpp EXCLUDE_FROM_ALL) | ||
| include(ImageStreamJpeg) | ||
| webfront_link_image_stream_jpeg(image_stream_bench WEBFRONT_BENCH_JPEG) | ||
| if(WEBFRONT_WEBTEST_FRONTEND STREQUAL "WebKitGTK") | ||
| find_package(PkgConfig QUIET) | ||
| if(PKG_CONFIG_FOUND) | ||
| pkg_check_modules(WEBFRONT_WEB_EXTENSION QUIET IMPORTED_TARGET webkitgtk-web-process-extension-6.0) | ||
| endif() | ||
| if(WEBFRONT_WEB_EXTENSION_FOUND) | ||
| set(directory "${CMAKE_CURRENT_BINARY_DIR}/image-stream-extension") | ||
| add_library(image_stream_extension MODULE EXCLUDE_FROM_ALL "${source}/ImageStreamWebExtension.cpp") | ||
| target_link_libraries(image_stream_extension PRIVATE PkgConfig::WEBFRONT_WEB_EXTENSION ${CMAKE_DL_LIBS} rt) | ||
| set_target_properties(image_stream_extension PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${directory}") | ||
| add_dependencies(image_stream_bench image_stream_extension) | ||
| target_compile_definitions(image_stream_bench PRIVATE WEBFRONT_BENCH_SHM | ||
| "WEBFRONT_BENCH_EXTENSION_DIRECTORY=\"${directory}\"") | ||
| target_link_libraries(image_stream_bench PRIVATE rt) | ||
| else() | ||
| message(STATUS "image_stream_bench: no WebKitGTK web process extension headers, no shared memory track") | ||
| endif() | ||
| endif() | ||
| if(WEBFRONT_WEBTEST_FRONTEND STREQUAL "WKWebView") | ||
| set_target_properties(image_stream_bench PROPERTIES MACOSX_BUNDLE TRUE | ||
| MACOSX_BUNDLE_GUI_IDENTIFIER "org.webfront.tests.image-stream-bench" | ||
| MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/test/cmake/WKWebViewTestInfo.plist.in") | ||
| endif() | ||
| add_custom_target(image_stream_report | ||
| COMMAND image_stream_bench "${source}/image-stream" "${CMAKE_BINARY_DIR}/image-streams.json" | ||
| USES_TERMINAL VERBATIM) | ||
| endfunction() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # The optional JPEG library of the image stream example and of its measurement and test (docs/IMAGE_STREAMS.md). Searched | ||
| # by default on Linux only: elsewhere a runner or a developer machine often holds a libjpeg of another toolchain (Strawberry | ||
| # Perl, Mono) that find_package would pick. Without it the host sends pixels, and the benchmark lets the page encode. | ||
| include_guard(GLOBAL) | ||
|
|
||
| if(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
| set(_webfront_image_jpeg_default ON) | ||
| else() | ||
| set(_webfront_image_jpeg_default OFF) | ||
| endif() | ||
| option(WEBFRONT_IMAGE_STREAM_JPEG "Encode the images of the image stream example with libjpeg" ${_webfront_image_jpeg_default}) | ||
|
|
||
| # webfront_link_image_stream_jpeg(<target> <definition>): links libjpeg and defines <definition> when it is found. | ||
| function(webfront_link_image_stream_jpeg target definition) | ||
| if(NOT WEBFRONT_IMAGE_STREAM_JPEG) | ||
| return() | ||
| endif() | ||
| find_package(JPEG QUIET) | ||
| if(JPEG_FOUND) | ||
| target_link_libraries(${target} PRIVATE JPEG::JPEG) | ||
| target_compile_definitions(${target} PRIVATE ${definition}) | ||
| else() | ||
| message(STATUS "${target}: no JPEG library found, built without JPEG encoding") | ||
| endif() | ||
| endfunction() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.