amhk / attic-lokatt Goto Github PK
View Code? Open in Web Editor NEWWrapper for 'adb logcat'
License: MIT License
Wrapper for 'adb logcat'
License: MIT License
Adding this here as a reminder for the future
Add the possibility to manually inject markers in the log to keep track of an event flow.
Filter the log based on the different log message attributes
Needed-by: #20
lookup_process_name will create a new "adb shell" connection for each call, which is a performance bottleneck. Create a persistent "adb shell" connection on which all shell commands can execute.
Make adb agnostic to how commands are implemented. Instead, defer actual command execution to functions specified in an operations struct (think kernel modules). Add different backends for talking with adb (preferably via the adb protocol, see #18) and for reading from a file.
It seems the pre-commit-hook gets the line numbers wrong. Investigate and fix.
Adb logcat support the following formats
"adb logcat -v brief" - Display priority/tag and the PID of process issuing the message (the default format).
"adb logcat -v process" - Display PID only.
"adb logcat -v tag" - Display the priority/tag only.
"adb logcat -v raw" - Display the raw log message, with no other metadata fields.
"adb logcat -v time" - Display the date, invocation time, priority/tag, and PID of the process issuing the message.
"adb logcat -v thread" - Display the priority, tag, and the PID and TID of the thread issuing the message.
"adb logcat -v threadtime" - Display the date, invocation time, priority, tag, and the PID and TID of the thread issuing the message.
"adb logcat -v long" - Display all metadata fields and separate messages with a blank lines.
lokatt should support the same -v params mapping to predefined filters matching the format from adb logcat
add test-bridge.c and implement relevant test cases
Replace today's solution where adb.c forks and execs the standalone adb binary with an implementation that talks directly with the adb server using the adb protocol (just like DDMS does it).
The "line too long" check should check for ".{81}", not ".{80}" as is done today.
Given paths to symbols and cross-compiled addr2line and similar tools, automatically translate native crashes to source code file + line.
add test-demux.c and implement relevant test cases
Have create_filter accept an optional out-paramter (of type struct strbuf *). If there is an error while creating the filter, the strbuf should contain a message intended to be shown to the end user.
The lexer already contains logic to pinpoint what character in the input caused problems. The parser needs to be refined -- perhaps add more logic to tokens about where in the input they came from?
Rather than returning a struct adb_stream
from create_adb_stream and related functions, a void *
handle should be returned.
The same should be done for lokatt_session and lokatt_channel in lokatt.h.
It should be possible to log the binary output from adb to file.
It should be possible to start a lokatt_session with a logfile as input.
This should probably be implemented in the layers below demux.c with the needed paramaters (i.e file path) passed on from create_lokatt_session in demux.c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.