Comments (5)
I could see this being very useful at times. Is it safe to assume the overhead of running it on everything would be negligible?
from urchin.
I think so, yes. I was only intending storing the wall clock time since this is what tends to be most interesting to me. It's not really intended for heavy profiling, but should be useful for spotting trends and situations when rough times are all you need.
ae4d9d2 implements the bare bones of this, but I want to store the times in the history too. One thing to be aware of is that it records post-parse --> post-run (in other words, after the command line has been parsed - just before execution - to when the command line returns - just before the next prompt is drawn).
from urchin.
If I understand correctly, you meant the feature to be timestamps on each command (with date
presumably) rather than running time
for each command? To me the timestamps would be even more useful: I've often wanted to be able to look through my command history and know exactly when and where (in what directory) I issued a certain command. I'll create an issue for the where part, along with the implementation approach I envision working best.
from urchin.
I was meaning the duration of each command (in the same sort of way as time
), but I love the idea of actual timestamps too and am definitely interested in adding this.
from urchin.
Implemented by #14.
from urchin.
Related Issues (20)
- Make Urchin multi-line aware
- Tilde expansion doesn't work with escaped chars in pathnames
- Tidy up code from before rb-readline was a dependency
- Follow the XDG Base Directory Specification HOT 1
- Allow interaction with user before command is issued HOT 1
- Don't close Ruby reserved FDs in forked processes HOT 1
- Equals sign is able to crash Urchin HOT 1
- Load errors after installing gem HOT 1
- Race condition when opening the first two Urchin instances after a boot
- Can't assign aliases like "git hist"
- Git completion: add ":" to branch names when pushing
- Can't redirect to a file that doesn't exist if the pathname contains a tilde
- No space after command switch doesn't separate arguments
- Add ability to write Urchin functions
- Consider making numeric Ruby parsing add .0 to use floats by default
- Convert tests to Minitest HOT 1
- Command lines starting with a minus symbol should be parsed as Ruby
- Implement Ctrl-x Ctrl-e like Bash
- Make aliases properties of Shell instances
- Implement source builtin
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 urchin.