diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-09 00:52:11 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-09 00:52:11 +0300 |
| commit | 0ea4aaacef24bae6763b747bdfe81512a6b06465 (patch) | |
| tree | 8032eca7585eff680afb5e9a269d9a0ab8ba0841 /about/showcase | |
| parent | a39dddfa69efc96cf894fdd4f686af547e17976c (diff) | |
add showcase
Diffstat (limited to 'about/showcase')
| -rw-r--r-- | about/showcase/debroid/image-1.png | 38 | ||||
| -rw-r--r-- | about/showcase/ior/image-1.png | bin | 0 -> 46683 bytes | |||
| -rw-r--r-- | about/showcase/ior/image-2.svg | 12270 | ||||
| -rw-r--r-- | about/showcase/ioriot/image-1.png | bin | 0 -> 12508 bytes |
4 files changed, 12289 insertions, 19 deletions
diff --git a/about/showcase/debroid/image-1.png b/about/showcase/debroid/image-1.png index 6dc745f6..427a613c 100644 --- a/about/showcase/debroid/image-1.png +++ b/about/showcase/debroid/image-1.png @@ -86,13 +86,13 @@ <meta name="route-pattern" content="/:user_id/:repository/blob/*name(/*path)" data-turbo-transient> <meta name="route-controller" content="blob" data-turbo-transient> <meta name="route-action" content="show" data-turbo-transient> - <meta name="fetch-nonce" content="v2:0a950cfc-c8d9-c0c9-e066-88597b2b30d1"> + <meta name="fetch-nonce" content="v2:73c8545c-df18-d022-9a9d-059ee3840f82"> <meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb"> - <meta name="request-id" content="B31C:264D07:4F7349:51CECC:686D91F2" data-pjax-transient="true"/><meta name="html-safe-nonce" content="96a549def022972e39dcff015bb7eb951d63c31b5f3eeeae4f80bdf62bd20dfb" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzFDOjI2NEQwNzo0RjczNDk6NTFDRUNDOjY4NkQ5MUYyIiwidmlzaXRvcl9pZCI6IjYwMzY0NjIwMDY2ODIwOTYxMTQiLCJyZWdpb25fZWRnZSI6ImZyYSIsInJlZ2lvbl9yZW5kZXIiOiJmcmEifQ==" data-pjax-transient="true"/><meta name="visitor-hmac" content="9626e1718529b2f31836275044a76ab5e08f1a34f8eaccfda6890bf93eba99bf" data-pjax-transient="true"/> + <meta name="request-id" content="86BA:9DA13:53014B:557B93:686D92D7" data-pjax-transient="true"/><meta name="html-safe-nonce" content="4f84f0788e4a77010d24a9fcea8df65c208ca24b36f46503db29203fd07d90d3" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkJBOjlEQTEzOjUzMDE0Qjo1NTdCOTM6Njg2RDkyRDciLCJ2aXNpdG9yX2lkIjoiMzg1MzE0MjU5MDM3ODMxNjUwMyIsInJlZ2lvbl9lZGdlIjoiZnJhIiwicmVnaW9uX3JlbmRlciI6ImZyYSJ9" data-pjax-transient="true"/><meta name="visitor-hmac" content="5720ed7fa7790a40fd9ea09eb53a1d3c73ff4388f4e912d3569f143d9d88018b" data-pjax-transient="true"/> @@ -293,10 +293,10 @@ </a> <div class="AppHeader-appearanceSettings"> <react-partial-anchor> - <button data-target="react-partial-anchor.anchor" id="icon-button-e3928bc5-8c3b-465a-96b9-542f99557072" aria-labelledby="tooltip-a5df7685-5914-4525-bc5b-b760f454537d" type="button" disabled="disabled" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium AppHeader-button HeaderMenu-link border cursor-wait"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-sliders Button-visual"> + <button data-target="react-partial-anchor.anchor" id="icon-button-f7fbc92e-eea4-4463-b968-c4037c0eb8a8" aria-labelledby="tooltip-985ae786-b84a-4640-aa3f-cafd08f831e9" type="button" disabled="disabled" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium AppHeader-button HeaderMenu-link border cursor-wait"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-sliders Button-visual"> <path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path> </svg> -</button><tool-tip id="tooltip-a5df7685-5914-4525-bc5b-b760f454537d" for="icon-button-e3928bc5-8c3b-465a-96b9-542f99557072" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Appearance settings</tool-tip> +</button><tool-tip id="tooltip-985ae786-b84a-4640-aa3f-cafd08f831e9" for="icon-button-f7fbc92e-eea4-4463-b968-c4037c0eb8a8" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Appearance settings</tool-tip> <template data-target="react-partial-anchor.template"> <script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_document-metadata_document-metadata_ts-ui_packages_promise-with-resolvers-polyfil-1e7a2a-b50af437b812.js" defer="defer"></script> @@ -970,7 +970,7 @@ -<qbsearch-input class="search-input" data-scope="owner:buetow" data-custom-scopes-path="/search/custom_scopes" data-delete-custom-scopes-csrf="Fc-ClUcGVS37cefWITbtaqjtVoClZA2lA14dpzFlpeqqp9hK31LHS9L3lgCS4mdlYN6FYWbGe0iUMjq1PQpCig" data-max-custom-scopes="10" data-header-redesign-enabled="false" data-initial-value="" data-blackbird-suggestions-path="/search/suggestions" data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations" data-current-repository="" data-current-org="" data-current-owner="" data-logged-in="false" data-copilot-chat-enabled="false" data-nl-search-enabled="false" data-retain-scroll-position="true"> +<qbsearch-input class="search-input" data-scope="owner:buetow" data-custom-scopes-path="/search/custom_scopes" data-delete-custom-scopes-csrf="q90zCSH3qN5L4tpo7il9Z4IOQfdeVlEIQgB98xfDSBMtyJ8Dno9pcb6b1IKg45i9BL4rLKGRr9l73rtxiLL9jQ" data-max-custom-scopes="10" data-header-redesign-enabled="false" data-initial-value="" data-blackbird-suggestions-path="/search/suggestions" data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations" data-current-repository="" data-current-org="" data-current-owner="" data-logged-in="false" data-copilot-chat-enabled="false" data-nl-search-enabled="false" data-retain-scroll-position="true"> <div class="search-input-container search-with-dialog position-relative d-flex flex-row flex-items-center mr-4 rounded" data-action="click:qbsearch-input#searchInputContainerClicked" @@ -1034,7 +1034,7 @@ ></div> <div class="QueryBuilder-InputWrapper"> <div aria-hidden="true" class="QueryBuilder-Sizer" data-target="query-builder.sizer"></div> - <input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-98aa9e80-b21e-40a8-9cf3-6444f4192b72" data-target="query-builder.input" data-action=" + <input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-2684706f-1345-4955-bffa-12e77db43d44" data-target="query-builder.input" data-action=" input:query-builder#inputChange blur:query-builder#inputBlur keydown:query-builder#inputKeydown @@ -1271,7 +1271,7 @@ id="query-builder-test-results" ></ul> </div> - <div class="FormControl-inlineValidation" id="validation-98aa9e80-b21e-40a8-9cf3-6444f4192b72" hidden="hidden"> + <div class="FormControl-inlineValidation" id="validation-2684706f-1345-4955-bffa-12e77db43d44" hidden="hidden"> <span class="FormControl-inlineValidation--visual"> <svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> @@ -1312,7 +1312,7 @@ </div> <scrollable-region data-labelled-by="feedback-dialog-title"> - <div data-view-component="true" class="Overlay-body"> <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="geAHzdUVzthOksbsJmS3rzBomSHLdWDYcO1KTgyahER59BXtg8A7ccTcm7/KTZQ7LerFroB72bJnVrrNK5g2AQ==" /> + <div data-view-component="true" class="Overlay-body"> <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="Fq/oX/R/5uCZlu9HHe0nUjl1KW6mskxa0AIshhl/V7sK+p5K2kFaHkKs1PbWVPENr09tEyqOQPNtUBp/CLc60A==" /> <p>We read every piece of feedback, and take your input very seriously.</p> <textarea name="feedback" class="form-control width-full mb-2" style="height: 120px" id="feedback"></textarea> <input name="include_email" id="include_email" aria-label="Include my email address so I can be contacted" class="form-control mr-2" type="checkbox"> @@ -1350,7 +1350,7 @@ <div data-view-component="true" class="Overlay-body"> <div data-target="custom-scopes.customScopesModalDialogFlash"></div> <div hidden class="create-custom-scope-form" data-target="custom-scopes.createCustomScopeForm"> - <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="3GAqGxSDYJQx1o4prbnu3QNnOFZwVAHmkiAB/8oMfbCSkUxY4nl4ANdxtzAvVAj8GYbTjug9cVPSZ+n7U5Jp7g==" /> + <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="R83eoBT8YK2rA0yI7vpETCRLTdMz/xSpMIXEoBEovyyLOBNhRaCfPVaH42kZBxCFFtnnqHze5qNuz7rUQtHrHw==" /> <div data-target="custom-scopes.customScopesModalDialogFlash"></div> <input type="hidden" id="custom_scope_id" name="custom_scope_id" data-target="custom-scopes.customScopesIdField"> @@ -1368,7 +1368,7 @@ placeholder="github-ruby" required maxlength="50"> - <input type="hidden" data-csrf="true" value="MUrdHXivRPGgSQieRufcO3dGBT+a7yzqoJlVeNeMfpZD+smVpfSOZP6Udf8VaEtxYDFMQzs+J+Y782VxQYbr2g==" /> + <input type="hidden" data-csrf="true" value="afkoKgGRKg0J80wm5TXtI0ef4aS+Ml6+PbMElp9EH7ur6qSM1VonD0i6k3w9plFkl8ipJN/oNOSN979Sv6LFHg==" /> </auto-check> </div> @@ -1423,7 +1423,7 @@ <h4 data-view-component="true" class="color-fg-default mb-2"> Sign in to GitHub </h4> -<!-- '"` --><!-- </textarea></xmp> --></option></form><form data-turbo="false" action="/session" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="O1dUS+KTaBRWgWakhs4W/2/YONipsochQRj5KM8D2URmEhsH7LHcAwAn+7+8C9icupchRQPO/0rDQmt9xIxBwg==" /> <input type="hidden" name="add_account" id="add_account" autocomplete="off" class="form-control" /> +<!-- '"` --><!-- </textarea></xmp> --></option></form><form data-turbo="false" action="/session" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="aY0imVlxkHVcy9Cq2mQ534iuPT0uPaw39FK1ljJ4HqEQRhkdOSSB2jGmUSAWZ+bkdHfjfUZBk6aua9fYW3bnSg==" /> <input type="hidden" name="add_account" id="add_account" autocomplete="off" class="form-control" /> <label for="login_field"> Username or email address @@ -1445,9 +1445,9 @@ <input type="hidden" name="allow_signup" id="allow_signup" autocomplete="off" class="form-control" /> <input type="hidden" name="client_id" id="client_id" autocomplete="off" class="form-control" /> <input type="hidden" name="integration" id="integration" autocomplete="off" class="form-control" /> -<input class="form-control" type="text" name="required_field_120f" hidden="hidden" /> -<input class="form-control" type="hidden" name="timestamp" value="1752011250457" /> -<input class="form-control" type="hidden" name="timestamp_secret" value="62d2ffac64d47b2dd350816c1040084f14d21b014c0c0f2e900987d74c3dac96" /> +<input class="form-control" type="text" name="required_field_8ceb" hidden="hidden" /> +<input class="form-control" type="hidden" name="timestamp" value="1752011479481" /> +<input class="form-control" type="hidden" name="timestamp_secret" value="e4f124edbff48ac3a790df6efcb7e04136f1b22590b708d3a6801d4a6d2a168a" /> <input type="submit" name="commit" value="Sign in" class="btn btn-primary btn-block js-sign-in-button" data-disable-with="Signing in…" data-signin-label="Sign in" data-sso-label="Sign in with your identity provider" development="false" disable-emu-sso="false" /> @@ -1474,10 +1474,10 @@ <div class="AppHeader-appearanceSettings"> <react-partial-anchor> - <button data-target="react-partial-anchor.anchor" id="icon-button-2d52a861-1280-443f-9e6c-8b643b4b8b2b" aria-labelledby="tooltip-b4553d51-de07-46ca-9366-e5ae7878b754" type="button" disabled="disabled" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium AppHeader-button HeaderMenu-link border cursor-wait"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-sliders Button-visual"> + <button data-target="react-partial-anchor.anchor" id="icon-button-6c92c25f-937f-4682-8301-5a62e8f9b8af" aria-labelledby="tooltip-5f462cb8-b12f-4cb0-9988-03d755a41ddf" type="button" disabled="disabled" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium AppHeader-button HeaderMenu-link border cursor-wait"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-sliders Button-visual"> <path d="M15 2.75a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75Zm-8.5.75v1.25a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-1.5 0V2H1.75a.75.75 0 0 0 0 1.5H6.5Zm1.25 5.25a.75.75 0 0 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6ZM15 8a.75.75 0 0 1-.75.75H11.5V10a.75.75 0 1 1-1.5 0V6a.75.75 0 0 1 1.5 0v1.25h2.75A.75.75 0 0 1 15 8Zm-9 5.25v-2a.75.75 0 0 0-1.5 0v1.25H1.75a.75.75 0 0 0 0 1.5H4.5v1.25a.75.75 0 0 0 1.5 0v-2Zm9 0a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Z"></path> </svg> -</button><tool-tip id="tooltip-b4553d51-de07-46ca-9366-e5ae7878b754" for="icon-button-2d52a861-1280-443f-9e6c-8b643b4b8b2b" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Appearance settings</tool-tip> +</button><tool-tip id="tooltip-5f462cb8-b12f-4cb0-9988-03d755a41ddf" for="icon-button-6c92c25f-937f-4682-8301-5a62e8f9b8af" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Appearance settings</tool-tip> <template data-target="react-partial-anchor.template"> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.5fdb25ed878a5138c363.module.css" /> @@ -1487,7 +1487,7 @@ partial-name="appearance-settings" data-ssr="false" data-attempted-ssr="false" - data-react-profiling="true" + data-react-profiling="false" > <script type="application/json" data-target="react-partial.embeddedData">{"props":{}}</script> @@ -1514,10 +1514,10 @@ <span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> - <button id="icon-button-c5242a31-ece3-424d-af19-6eafac25a1ef" aria-labelledby="tooltip-983d489e-5115-4af9-a574-961eb85544c2" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual"> + <button id="icon-button-8c5e6ec3-bc18-419d-871f-30ce39f5730d" aria-labelledby="tooltip-6d203606-45d5-404e-87fd-bda817c0806b" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> -</button><tool-tip id="tooltip-983d489e-5115-4af9-a574-961eb85544c2" for="icon-button-c5242a31-ece3-424d-af19-6eafac25a1ef" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip> +</button><tool-tip id="tooltip-6d203606-45d5-404e-87fd-bda817c0806b" for="icon-button-8c5e6ec3-bc18-419d-871f-30ce39f5730d" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip> diff --git a/about/showcase/ior/image-1.png b/about/showcase/ior/image-1.png Binary files differnew file mode 100644 index 00000000..157df174 --- /dev/null +++ b/about/showcase/ior/image-1.png diff --git a/about/showcase/ior/image-2.svg b/about/showcase/ior/image-2.svg new file mode 100644 index 00000000..9c7d98c6 --- /dev/null +++ b/about/showcase/ior/image-2.svg @@ -0,0 +1,12270 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" width="1200" height="310" onload="init(evt)" viewBox="0 0 1200 310" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- Flame graph stack visualization. See https://github.com/brendangregg/FlameGraph for latest version, and http://www.brendangregg.com/flamegraphs.html for examples. --> +<!-- NOTES: --> +<defs> + <linearGradient id="background" y1="0" y2="1" x1="0" x2="0" > + <stop stop-color="#eeeeee" offset="5%" /> + <stop stop-color="#eeeeb0" offset="95%" /> + </linearGradient> +</defs> +<style type="text/css"> + text { font-family:Verdana; font-size:12px; fill:rgb(0,0,0); } + #search, #ignorecase { opacity:0.1; cursor:pointer; } + #search:hover, #search.show, #ignorecase:hover, #ignorecase.show { opacity:1; } + #subtitle { text-anchor:middle; font-color:rgb(160,160,160); } + #title { text-anchor:middle; font-size:17px} + #unzoom { cursor:pointer; } + #frames > *:hover { stroke:black; stroke-width:0.5; cursor:pointer; } + .hide { display:none; } + .parent { opacity:0.5; } +</style> +<script type="text/ecmascript"> +<![CDATA[ + "use strict"; + var details, searchbtn, unzoombtn, matchedtxt, svg, searching, currentSearchTerm, ignorecase, ignorecaseBtn; + function init(evt) { + details = document.getElementById("details").firstChild; + searchbtn = document.getElementById("search"); + ignorecaseBtn = document.getElementById("ignorecase"); + unzoombtn = document.getElementById("unzoom"); + matchedtxt = document.getElementById("matched"); + svg = document.getElementsByTagName("svg")[0]; + searching = 0; + currentSearchTerm = null; + + // use GET parameters to restore a flamegraphs state. + var params = get_params(); + if (params.x && params.y) + zoom(find_group(document.querySelector('[x="' + params.x + '"][y="' + params.y + '"]'))); + if (params.s) search(params.s); + } + + // event listeners + window.addEventListener("click", function(e) { + var target = find_group(e.target); + if (target) { + if (target.nodeName == "a") { + if (e.ctrlKey === false) return; + e.preventDefault(); + } + if (target.classList.contains("parent")) unzoom(true); + zoom(target); + if (!document.querySelector('.parent')) { + // we have basically done a clearzoom so clear the url + var params = get_params(); + if (params.x) delete params.x; + if (params.y) delete params.y; + history.replaceState(null, null, parse_params(params)); + unzoombtn.classList.add("hide"); + return; + } + + // set parameters for zoom state + var el = target.querySelector("rect"); + if (el && el.attributes && el.attributes.y && el.attributes._orig_x) { + var params = get_params() + params.x = el.attributes._orig_x.value; + params.y = el.attributes.y.value; + history.replaceState(null, null, parse_params(params)); + } + } + else if (e.target.id == "unzoom") clearzoom(); + else if (e.target.id == "search") search_prompt(); + else if (e.target.id == "ignorecase") toggle_ignorecase(); + }, false) + + // mouse-over for info + // show + window.addEventListener("mouseover", function(e) { + var target = find_group(e.target); + if (target) details.nodeValue = "Function: " + g_to_text(target); + }, false) + + // clear + window.addEventListener("mouseout", function(e) { + var target = find_group(e.target); + if (target) details.nodeValue = ' '; + }, false) + + // ctrl-F for search + // ctrl-I to toggle case-sensitive search + window.addEventListener("keydown",function (e) { + if (e.keyCode === 114 || (e.ctrlKey && e.keyCode === 70)) { + e.preventDefault(); + search_prompt(); + } + else if (e.ctrlKey && e.keyCode === 73) { + e.preventDefault(); + toggle_ignorecase(); + } + }, false) + + // functions + function get_params() { + var params = {}; + var paramsarr = window.location.search.substr(1).split('&'); + for (var i = 0; i < paramsarr.length; ++i) { + var tmp = paramsarr[i].split("="); + if (!tmp[0] || !tmp[1]) continue; + params[tmp[0]] = decodeURIComponent(tmp[1]); + } + return params; + } + function parse_params(params) { + var uri = "?"; + for (var key in params) { + uri += key + '=' + encodeURIComponent(params[key]) + '&'; + } + if (uri.slice(-1) == "&") + uri = uri.substring(0, uri.length - 1); + if (uri == '?') + uri = window.location.href.split('?')[0]; + return uri; + } + function find_child(node, selector) { + var children = node.querySelectorAll(selector); + if (children.length) return children[0]; + } + function find_group(node) { + var parent = node.parentElement; + if (!parent) return; + if (parent.id == "frames") return node; + return find_group(parent); + } + function orig_save(e, attr, val) { + if (e.attributes["_orig_" + attr] != undefined) return; + if (e.attributes[attr] == undefined) return; + if (val == undefined) val = e.attributes[attr].value; + e.setAttribute("_orig_" + attr, val); + } + function orig_load(e, attr) { + if (e.attributes["_orig_"+attr] == undefined) return; + e.attributes[attr].value = e.attributes["_orig_" + attr].value; + e.removeAttribute("_orig_"+attr); + } + function g_to_text(e) { + var text = find_child(e, "title").firstChild.nodeValue; + return (text) + } + function g_to_func(e) { + var func = g_to_text(e); + // if there's any manipulation we want to do to the function + // name before it's searched, do it here before returning. + return (func); + } + function update_text(e) { + var r = find_child(e, "rect"); + var t = find_child(e, "text"); + var w = parseFloat(r.attributes.width.value) -3; + var txt = find_child(e, "title").textContent.replace(/\([^(]*\)$/,""); + t.attributes.x.value = parseFloat(r.attributes.x.value) + 3; + + // Smaller than this size won't fit anything + if (w < 2 * 12 * 0.59) { + t.textContent = ""; + return; + } + + t.textContent = txt; + var sl = t.getSubStringLength(0, txt.length); + // check if only whitespace or if we can fit the entire string into width w + if (/^ *$/.test(txt) || sl < w) + return; + + // this isn't perfect, but gives a good starting point + // and avoids calling getSubStringLength too often + var start = Math.floor((w/sl) * txt.length); + for (var x = start; x > 0; x = x-2) { + if (t.getSubStringLength(0, x + 2) <= w) { + t.textContent = txt.substring(0, x) + ".."; + return; + } + } + t.textContent = ""; + } + + // zoom + function zoom_reset(e) { + if (e.attributes != undefined) { + orig_load(e, "x"); + orig_load(e, "width"); + } + if (e.childNodes == undefined) return; + for (var i = 0, c = e.childNodes; i < c.length; i++) { + zoom_reset(c[i]); + } + } + function zoom_child(e, x, ratio) { + if (e.attributes != undefined) { + if (e.attributes.x != undefined) { + orig_save(e, "x"); + e.attributes.x.value = (parseFloat(e.attributes.x.value) - x - 10) * ratio + 10; + if (e.tagName == "text") + e.attributes.x.value = find_child(e.parentNode, "rect[x]").attributes.x.value + 3; + } + if (e.attributes.width != undefined) { + orig_save(e, "width"); + e.attributes.width.value = parseFloat(e.attributes.width.value) * ratio; + } + } + + if (e.childNodes == undefined) return; + for (var i = 0, c = e.childNodes; i < c.length; i++) { + zoom_child(c[i], x - 10, ratio); + } + } + function zoom_parent(e) { + if (e.attributes) { + if (e.attributes.x != undefined) { + orig_save(e, "x"); + e.attributes.x.value = 10; + } + if (e.attributes.width != undefined) { + orig_save(e, "width"); + e.attributes.width.value = parseInt(svg.width.baseVal.value) - (10 * 2); + } + } + if (e.childNodes == undefined) return; + for (var i = 0, c = e.childNodes; i < c.length; i++) { + zoom_parent(c[i]); + } + } + function zoom(node) { + var attr = find_child(node, "rect").attributes; + var width = parseFloat(attr.width.value); + var xmin = parseFloat(attr.x.value); + var xmax = parseFloat(xmin + width); + var ymin = parseFloat(attr.y.value); + var ratio = (svg.width.baseVal.value - 2 * 10) / width; + + // XXX: Workaround for JavaScript float issues (fix me) + var fudge = 0.0001; + + unzoombtn.classList.remove("hide"); + + var el = document.getElementById("frames").children; + for (var i = 0; i < el.length; i++) { + var e = el[i]; + var a = find_child(e, "rect").attributes; + var ex = parseFloat(a.x.value); + var ew = parseFloat(a.width.value); + var upstack; + // Is it an ancestor + if (0 == 0) { + upstack = parseFloat(a.y.value) > ymin; + } else { + upstack = parseFloat(a.y.value) < ymin; + } + if (upstack) { + // Direct ancestor + if (ex <= xmin && (ex+ew+fudge) >= xmax) { + e.classList.add("parent"); + zoom_parent(e); + update_text(e); + } + // not in current path + else + e.classList.add("hide"); + } + // Children maybe + else { + // no common path + if (ex < xmin || ex + fudge >= xmax) { + e.classList.add("hide"); + } + else { + zoom_child(e, xmin, ratio); + update_text(e); + } + } + } + search(); + } + function unzoom(dont_update_text) { + unzoombtn.classList.add("hide"); + var el = document.getElementById("frames").children; + for(var i = 0; i < el.length; i++) { + el[i].classList.remove("parent"); + el[i].classList.remove("hide"); + zoom_reset(el[i]); + if(!dont_update_text) update_text(el[i]); + } + search(); + } + function clearzoom() { + unzoom(); + + // remove zoom state + var params = get_params(); + if (params.x) delete params.x; + if (params.y) delete params.y; + history.replaceState(null, null, parse_params(params)); + } + + // search + function toggle_ignorecase() { + ignorecase = !ignorecase; + if (ignorecase) { + ignorecaseBtn.classList.add("show"); + } else { + ignorecaseBtn.classList.remove("show"); + } + reset_search(); + search(); + } + function reset_search() { + var el = document.querySelectorAll("#frames rect"); + for (var i = 0; i < el.length; i++) { + orig_load(el[i], "fill") + } + var params = get_params(); + delete params.s; + history.replaceState(null, null, parse_params(params)); + } + function search_prompt() { + if (!searching) { + var term = prompt("Enter a search term (regexp " + + "allowed, eg: ^ext4_)" + + (ignorecase ? ", ignoring case" : "") + + "\nPress Ctrl-i to toggle case sensitivity", ""); + if (term != null) search(term); + } else { + reset_search(); + searching = 0; + currentSearchTerm = null; + searchbtn.classList.remove("show"); + searchbtn.firstChild.nodeValue = "Search" + matchedtxt.classList.add("hide"); + matchedtxt.firstChild.nodeValue = "" + } + } + function search(term) { + if (term) currentSearchTerm = term; + if (currentSearchTerm === null) return; + + var re = new RegExp(currentSearchTerm, ignorecase ? 'i' : ''); + var el = document.getElementById("frames").children; + var matches = new Object(); + var maxwidth = 0; + for (var i = 0; i < el.length; i++) { + var e = el[i]; + var func = g_to_func(e); + var rect = find_child(e, "rect"); + if (func == null || rect == null) + continue; + + // Save max width. Only works as we have a root frame + var w = parseFloat(rect.attributes.width.value); + if (w > maxwidth) + maxwidth = w; + + if (func.match(re)) { + // highlight + var x = parseFloat(rect.attributes.x.value); + orig_save(rect, "fill"); + rect.attributes.fill.value = "rgb(230,0,230)"; + + // remember matches + if (matches[x] == undefined) { + matches[x] = w; + } else { + if (w > matches[x]) { + // overwrite with parent + matches[x] = w; + } + } + searching = 1; + } + } + if (!searching) + return; + var params = get_params(); + params.s = currentSearchTerm; + history.replaceState(null, null, parse_params(params)); + + searchbtn.classList.add("show"); + searchbtn.firstChild.nodeValue = "Reset Search"; + + // calculate percent matched, excluding vertical overlap + var count = 0; + var lastx = -1; + var lastw = 0; + var keys = Array(); + for (k in matches) { + if (matches.hasOwnProperty(k)) + keys.push(k); + } + // sort the matched frames by their x location + // ascending, then width descending + keys.sort(function(a, b){ + return a - b; + }); + // Step through frames saving only the biggest bottom-up frames + // thanks to the sort order. This relies on the tree property + // where children are always smaller than their parents. + var fudge = 0.0001; // JavaScript floating point + for (var k in keys) { + var x = parseFloat(keys[k]); + var w = matches[keys[k]]; + if (x >= lastx + lastw - fudge) { + count += w; + lastx = x; + lastw = w; + } + } + // display matched percent + matchedtxt.classList.remove("hide"); + var pct = 100 * count / maxwidth; + if (pct != 100) pct = pct.toFixed(1) + matchedtxt.firstChild.nodeValue = "Matched: " + pct + "%"; + } +]]> +</script> +<rect x="0.0" y="0" width="1200.0" height="310.0" fill="url(#background)" /> +<text id="title" x="600.00" y="24" >I/O Traces (pid,path,tracepoint by count)</text> +<text id="details" x="10.00" y="293" > </text> +<text id="unzoom" x="10.00" y="24" class="hide">Reset Zoom</text> +<text id="search" x="1090.00" y="24" >Search</text> +<text id="ignorecase" x="1174.00" y="24" >ic</text> +<text id="matched" x="1090.00" y="293" > </text> +<g id="frames"> +<g > +<title>/x86_64-redhat-linux (22,150 samples, 2.29%)</title><rect x="1114.7" y="165" width="27.1" height="15.0" fill="rgb(245,97,45)" rx="2" ry="2" /> +<text x="1117.72" y="175.5" >/..</text> +</g> +<g > +<title>enter_newfstat (87 samples, 0.01%)</title><rect x="1179.4" y="133" width="0.1" height="15.0" fill="rgb(229,196,26)" rx="2" ry="2" /> +<text x="1182.37" y="143.5" ></text> +</g> +<g > +<title> (367 samples, 0.04%)</title><rect x="1093.1" y="229" width="0.5" height="15.0" fill="rgb(255,230,55)" rx="2" ry="2" /> +<text x="1096.14" y="239.5" ></text> +</g> +<g > +<title>/home (380 samples, 0.04%)</title><rect x="681.6" y="213" width="0.4" height="15.0" fill="rgb(240,139,38)" rx="2" ry="2" /> +<text x="684.56" y="223.5" ></text> +</g> +<g > +<title>/var (86 samples, 0.01%)</title><rect x="777.2" y="213" width="0.1" height="15.0" fill="rgb(231,130,28)" rx="2" ry="2" /> +<text x="780.17" y="223.5" ></text> +</g> +<g > +<title>/gcc (697 samples, 0.07%)</title><rect x="1090.1" y="181" width="0.9" height="15.0" fill="rgb(234,144,32)" rx="2" ry="2" /> +<text x="1093.10" y="191.5" ></text> +</g> +<g > +<title>/a.out (4,987 samples, 0.52%)</title><rect x="1096.8" y="149" width="6.1" height="15.0" fill="rgb(234,96,32)" rx="2" ry="2" /> +<text x="1099.78" y="159.5" ></text> +</g> +<g > +<title>10802 (117 samples, 0.01%)</title><rect x="98.8" y="245" width="0.2" height="15.0" fill="rgb(245,112,44)" rx="2" ry="2" /> +<text x="101.84" y="255.5" ></text> +</g> +<g > +<title>enter_mmap (190 samples, 0.02%)</title><rect x="879.5" y="213" width="0.3" height="15.0" fill="rgb(240,196,39)" rx="2" ry="2" /> +<text x="882.53" y="223.5" ></text> +</g> +<g > +<title>/share (3,643 samples, 0.38%)</title><rect x="392.0" y="197" width="4.4" height="15.0" fill="rgb(248,122,47)" rx="2" ry="2" /> +<text x="394.98" y="207.5" ></text> +</g> +<g > +<title>/f4 (82 samples, 0.01%)</title><rect x="1068.1" y="149" width="0.1" height="15.0" fill="rgb(240,145,39)" rx="2" ry="2" /> +<text x="1071.13" y="159.5" ></text> +</g> +<g > +<title>enter_ioctl (92 samples, 0.01%)</title><rect x="758.1" y="69" width="0.1" height="15.0" fill="rgb(232,196,30)" rx="2" ry="2" /> +<text x="761.10" y="79.5" ></text> +</g> +<g > +<title>/memory.pressure (315 samples, 0.03%)</title><rect x="731.5" y="85" width="0.4" height="15.0" fill="rgb(242,107,41)" rx="2" ry="2" /> +<text x="734.50" y="95.5" ></text> +</g> +<g > +<title>enter_read (606 samples, 0.06%)</title><rect x="29.7" y="165" width="0.8" height="15.0" fill="rgb(241,196,40)" rx="2" ry="2" /> +<text x="32.75" y="175.5" ></text> +</g> +<g > +<title>enter_newfstat (95 samples, 0.01%)</title><rect x="1180.1" y="133" width="0.1" height="15.0" fill="rgb(229,196,26)" rx="2" ry="2" /> +<text x="1183.10" y="143.5" ></text> +</g> +<g > +<title>enter_read (90 samples, 0.01%)</title><rect x="744.9" y="69" width="0.1" height="15.0" fill="rgb(241,196,40)" rx="2" ry="2" /> +<text x="747.92" y="79.5" ></text> +</g> +<g > +<title>/fontconfig (282 samples, 0.03%)</title><rect x="865.7" y="181" width="0.3" height="15.0" fill="rgb(239,149,37)" rx="2" ry="2" /> +<text x="868.68" y="191.5" ></text> +</g> +<g > +<title>/64 (87 samples, 0.01%)</title><rect x="1050.7" y="149" width="0.1" height="15.0" fill="rgb(232,110,30)" rx="2" ry="2" /> +<text x="1053.68" y="159.5" ></text> +</g> +<g > +<title>/81 (83 samples, 0.01%)</title><rect x="1054.2" y="149" width="0.1" height="15.0" fill="rgb(230,165,28)" rx="2" ry="2" /> +<text x="1057.15" y="159.5" ></text> +</g> +<g > +<title>enter_read (90 samples, 0.01%)</title><rect x="733.4" y="69" width="0.1" height="15.0" fill="rgb(241,196,40)" rx="2" ry="2" /> +<text x="736.43" y="79.5" ></text> +</g> +<g > +<title>/lib (239 samples, 0.02%)</title><rect x="862.4" y="197" width="0.3" height="15.0" fill="rgb(234,99,32)" rx="2" ry="2" /> +<text x="865.37" y="207.5" ></text> +</g> +<g > +<title>/fortune (1,884 samples, 0.19%)</title><rect x="39.9" y="165" width="2.3" height="15.0" fill="rgb(246,149,46)" rx="2" ry="2" /> +<text x="42.88" y="175.5" ></text> +</g> +<g > +<title>enter_newfstat (87 samples, 0.01%)</title><rect x="1182.2" y="133" width="0.1" height="15.0" fill="rgb(229,196,26)" rx="2" ry="2" /> +<text x="1185.20" y="143.5" ></text> +</g> +<g > +<title>/lib (656 samples, 0.07%)</title><rect x="1175.4" y="197" width="0.8" height="15.0" fill="rgb(234,99,32)" rx="2" ry="2" /> +<text x="1178.39" y="207.5" ></text> +</g> +<g > +<title>/app-dbus\x2d:1.2\x2dorg.gnome.Identity.slice (1,672 samples, 0.17%)</title><rect x="716.4" y="101" width="2.0" height="15.0" fill="rgb(246,115,46)" rx="2" ry="2" /> +<text x="719.40" y="111.5" ></text> +</g> +<g > +<title>/transactions.db-wal (191 samples, 0.02%)</title><rect x="813.5" y="165" width="0.3" height="15.0" fill="rgb(223,124,20)" rx="2" ry="2" /> +<text x="816.53" y="175.5" ></text> +</g> +<g > +<title>/event3 (98 samples, 0.01%)</title><rect x="774.7" y="181" width="0.1" height="15.0" fill="rgb(245,131,44)" rx="2" ry="2" /> +<text x="777.67" y="191.5" ></text> +</g> +<g > +<title>. (143 samples, 0.01%)</title><rect x="117.4" y="229" width="0.2" height="15.0" fill="rgb(238,153,36)" rx="2" ry="2" /> +<text x="120.43" y="239.5" ></text> +</g> +<g > +<title>/libbpf.a (2,384 samples, 0.25%)</title><rect x="1093.8" y="85" width="2.9" height="15.0" fill="rgb(236,99,34)" rx="2" ry="2" /> +<text x="1096.79" y="95.5" ></text> +</g> +<g > +<title>enter_newfstat (116 samples, 0.01%)</title><rect x="485.0" y="165" width="0.1" height="15.0" fill="rgb(229,196,26)" rx="2" ry="2" /> +<text x="487.96" y="175.5" ></text> +</g> +<g > +<title>enter_newfstat (88 samples, 0.01%)</title><rect x="1180.4" y="133" width="0.1" height="15.0" fill="rgb(229,196,26)" rx="2" ry="2" /> +<text x="1183.43" y="143.5" ></text> +</g> +<g > +<title>/memory.pressure (315 samples, 0.03%)</title><rect x="691.0" y="85" width="0.4" height="15.0" fill="rgb(242,107,41)" rx="2" ry="2" /> +<text x="693.97" y="95.5" ></text> +</g> +<g > +<title>/f2 (92 samples, 0.01%)</title><rect x="1081.0" y="149" width="0.1" height="15.0" fill="rgb(244,152,42)" rx="2" ry="2" /> +<text x="1083.97" y="159.5" ></text> +</g> +<g > +<title>/usr (726 samples, 0.08%)</title><rect x="1142.9" y="213" width="0.8" height="15.0" fill="rgb(236,116,34)" rx="2" ry="2" /> +<text x="1145.85" y="223.5" ></text> +</g> +<g > +<title>/libgcc.a (137 samples, 0.01%)</title><rect x="1141.4" y="133" width="0.1" height="15.0" fill="rgb(238,99,36)" rx="2" ry="2" /> +<text x="1144.38" y="143.5" ></text> +</g> +<g > +<title>/smaps (464 samples, 0.05%)</title><rect x="800.1" y="181" width="0.6" height="15.0" fill="rgb(243,145,42)" rx="2" ry="2" /> +<text x="803.10" y="191.5" ></text> +</g> +<g > +<title>enter_read (88 samples, 0.01%)</title><rect x="725.7" y="69" width="0.1" height="15.0" fill="rgb(241,196,40)" rx="2" ry="2" /> +<text x="728.68" y="79.5" ></text> +</g> +<g > +<title>/memory.pressure (315 samp |
