Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Mar 30, 2023
0 parents commit 0ee8832
Show file tree
Hide file tree
Showing 1,153 changed files with 544,653 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.flatpak-builder
src/
49 changes: 49 additions & 0 deletions co.honnef.Gotraceui.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>co.honnef.Gotraceui</id>
<name>Gotraceui</name>
<developer_name>Gotraceui developers</developer_name>
<summary>Go execution trace frontend</summary>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<recommends>
<control>pointing</control>
<control>keyboard</control>
</recommends>
<description>
<p>
Gotraceui is a tool for visualizing and analyzing Go execution traces.
It is meant to be a faster, more accessible, and more powerful alternative to <pre>go tool trace</pre>.
Unlike <pre>go tool trace</pre>, Gotraceui doesn’t use deprecated browser APIs (or a browser at all), and its UI is tuned specifically to the unique characteristics of Go traces.
</p>
</description>
<launchable type="desktop-id">co.honnef.Gotraceui.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://user-images.githubusercontent.com/39825/228830850-d0f324dd-10bc-47e9-99d4-0936cbb79492.png</image>
</screenshot>
</screenshots>

<url type="homepage">https://github.com/dominikh/gotraceui/</url>
<url type="help">https://github.com/dominikh/gotraceui/releases/download/v0.1.0/gotraceui.pdf</url>

<content_rating type="oars-1.1" />
<releases>
<release version="0.1.0" date="2023-03-30" type="stable">
<description>
<p>
This is the first release of Gotraceui, the efficient frontend for Go execution traces.
It is the culmination of nine months of work and over 700 commits.
</p>
<p>
The attached PDF is a manual explaining most aspects of Gotraceui, including how to install it.
</p>
<p>
All of the essential features are there and Gotraceui should be a better alternative to <pre>go tool trace</pre> in 90% of cases.
Nevertheless, this is only the beginning.
</p>
</description>
<url type="details">https://github.com/dominikh/gotraceui/releases/tag/v0.1.0</url>
</release>
</releases>
</component>
55 changes: 55 additions & 0 deletions co.honnef.Gotraceui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"app-id": "co.honnef.Gotraceui",
"runtime": "org.freedesktop.Platform",
"runtime-version": "22.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.golang"
],
"command": "gotraceui",
"finish-args": [
"--device=dri",
"--socket=wayland",
"--filesystem=host"
],
"build-options": {
"env": [
"GOBIN=/app/bin",
"GOROOT=/usr/lib/sdk/golang"
]
},
"modules": [
{
"name": "gotraceui",
"buildsystem": "simple",
"build-commands": [
"cd src && $GOROOT/bin/go build -trimpath -o ../gotraceui -tags nox11 -ldflags \"-X gioui.org/app.ID=$FLATPAK_ID\" ./cmd/gotraceui",
"install -Dm00755 gotraceui $FLATPAK_DEST/bin/gotraceui",
"install -Dm00644 $FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml",
"cd src/share && find . -type f -exec install -Dm00644 {} $FLATPAK_DEST/share/{} \\;",
"sed -i -e /^Icon/s/gotraceui/$FLATPAK_ID/ $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
"find $FLATPAK_DEST/share -name 1024x1024 -type d -exec rm -rf {} +",
"find $FLATPAK_DEST/share -name gotraceui.png -execdir mv {} $FLATPAK_ID.png \\;",
"find $FLATPAK_DEST/share -name gotraceui.svg -execdir mv {} $FLATPAK_ID.svg \\;",
"find $FLATPAK_DEST/share -name x-gotraceui.xml -execdir mv {} $FLATPAK_ID.xml \\;"
],
"sources": [
{
"type": "git",
"tag": "v0.1.0",
"url": "https://github.com/dominikh/gotraceui.git",
"dest": "src"
},
{
"type": "dir",
"path": "./vendor",
"dest": "src/vendor"
},
{
"type": "file",
"path": "co.honnef.Gotraceui.appdata.xml"
}
]
}
]
}
9 changes: 9 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
set -ex
test -d src || git clone "$(jq -r '.modules[0].sources[0].url' co.honnef.Gotraceui.json)" src
(
cd src
git fetch origin
git checkout "$(jq -r '.modules[0].sources[0].tag' ../co.honnef.Gotraceui.json)"
go mod vendor -o ../vendor
)
63 changes: 63 additions & 0 deletions vendor/gioui.org/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions vendor/gioui.org/app/Gio.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions vendor/gioui.org/app/GioActivity.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0ee8832

Please sign in to comment.