Giter Site home page Giter Site logo

attic-lokatt's People

Contributors

amhk avatar hbaard avatar martinwallgren avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

attic-lokatt's Issues

Manual markers in log

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.

Improve performance of lookup_process_name

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.

adb.c: use kernel driver style 'op struct'

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.

gui: predefined output formats on par with adb logcat

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

liblokatt: filter: better error messages

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?

Hide struct adb_stream

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.

liblokatt: save adb stream to file

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.