Comments (1)
There are a few warts here however,
- Any other snaps that the user of etrace is using on their system when we remove/reinstall the content snap will end up getting confused and could crash, etc. so we would want to warn the user if they have any such applications running, this requires some more work to identify the running snaps that are using a particular gnome library
- The re-connections of the snaps could take a long time to do this
I did analyze this however to see if switching the content snaps from XZ to LZO would help significantly (even though that speedup would only apply to the very first graphical snap that uses that particular content snap, all further snaps even on their cold cache startup would benefit from the first one "warming up" the cache for the content snap itself. I used this prepare script:
#!/bin/bash -e
snap remove gnome-3-28-1804
snap remove gtk-common-themes
# CHANNEL=stable/lzo
CHANNEL=stable
snap install --channel=$CHANNEL gnome-3-28-1804
snap install --channel=$CHANNEL gtk-common-themes
(this was with the stable/lzo channel of those snaps that Ken published / built for me)
with this command line option to etrace:
$ etrace exec --no-trace --repeat=10 --cold --silent --prepare-script=refresh-gnome-platform-snaps.sh 1password
The results were:
- with xz compressed gnome snaps avg 14.05 seconds (10 runs) with std deviation of 0.40
- with lzo compressed gnome snaps avg 13.60 seconds (10 runs) with std deviation of 0.56
from etrace.
Related Issues (20)
- interally combine file and exec subcommand common implementation
- `etrace file --use-snap-run chromium` fails on Ubuntu 20.10 HOT 1
- Mention pros & cons against other tools used for measuring application startup times HOT 1
- look into using for measuring flatpaks too HOT 1
- fail with nicer message when no window session is available
- error message should be smarter
- support getting syscall return value in internal tracing pkg
- Add a timeout option in case the exec command does not find a window match
- Provide a quiet mode where nothing but the total startup time is displayed HOT 3
- Provide an option to always render the startup time in seconds HOT 1
- more tests for tracing package
- Look into using xdo instead of xdotool HOT 2
- analyze-snap should better identify running things through snap run
- etrace Fails when snap registers a url
- trace fails for standard-notes
- analyze-snap should perhaps compare to non-snap packages
- unable to trace intellij snap HOT 1
- etrace doesn't close antstream-arcade HOT 1
- Dependency Dashboard
- Fails to start: `could not set process exec attr to unconfined: write /proc/self/attr/exec: invalid argument`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etrace.