JakeWharton / JakeWharton/hugo
Nanotime as parameter for @DebugLog
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 7.9k
- Forks
- 792
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for this simple idea of AspectJ for logging in Android.
As CPUs are faster and faster, sometimes we need to check _nanos_ unit, Could you add a parameter to the `DebugLog` annotation and so to display `[XXXns]` when requested?
Basically you already grab `nanotime` but then you convert to `millis`.
Thanks,
Davide
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the DebugLog annotation and the existing code that captures nanotime before converting it to milliseconds. Trace the Android logging path to identify where an optional nanosecond setting should affect the output. Done means the requested setting displays nanoseconds while existing millisecond behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100