Commit Graph
86 Commits
Author SHA1 Message Date
wtud fee4b669cc Add -c to clear the log before starting logcat 2014-05-14 19:03:41 +02:00
Jake Wharton ccbaa1a77f Merge pull request #53 from LouisBVL/parse_proc_death
Properly match process kill/death/leave messages for secondary processes
2014-03-27 18:15:10 -07:00
Louis Boval f8ee064e89 Properly match process kill/death/leave messages for secondary processes
Summary: The regexes for process exits were no matching secondary processes, which makes it understandably hard to track their
lifecycles. Fix it by including ':' in the process name match groups, as in the process start regex.

Test Plan: Run, match the chrome process name, com.android.chrome, see its secondary processes start reporting their death.
2014-03-27 18:03:12 -07:00
Jake Wharton 2e1b3c9198 Merge pull request #51 from LouisBVL/process_parse
Allow package to specify a process as well …
2014-03-27 17:35:33 -07:00
Jake Wharton e188795904 Merge pull request #50 from LouisBVL/process_output
Display package:process_name in process birth/death messages
2014-03-27 17:34:09 -07:00
Jake Wharton ca00c3305a Merge pull request #52 from dfuerniss/master
Fixed path to adb in Readme
2014-03-13 23:02:45 -07:00
Danny Fürniß 7ecc256e66 Updated text pointing to path to adb in readme 2014-03-13 07:47:18 +01:00
Danny Fürniß 968dac082c Fixed adb path hint in readme 2014-03-13 07:45:54 +01:00
Louis Boval 1900517819 [pidcat] Allow package to specify a process as well …
Summary: Android apps can use multiple processes (eg, chrome), which are identified as <package_name>:<process_name> in logs. The names are defined in the manifest.
The main process is referred to as simply <package_name> by android.
Add the ability to specify a target process as part of what was until now the package name in pidcat, or all processes if no process is specified.

Usage:
 * pidcat <package_name> will match all of an app's processes (catchall).
 * pidcat <package_name>:<process_name> will match a given named process.
 ** In particular, pidcat <package_name>: will ensure only the app's main/default process is matched.

Test Plan: Run the script, try out with no process, empty (aka default) process, named process. Try multiple entries.
2014-03-12 23:35:47 -07:00
Louis Boval 97b9c28813 [pidcat] Display package:process_name in process birth/death messages
Summary: Making sense of a birth/death message is made easier by specifying which process it applies to, and not just the component or the pid.

Test Plan: Run, monitor message lines when cycling a multi-process app, inject None as a process name to check resilience.
2014-03-12 23:27:39 -07:00
Jake Wharton b19221ac33 Merge pull request #48 from burntcookie90/master
Add path inclusion instructions
2014-03-12 09:56:48 -07:00
Vishnu Rajeevan 767da21162 Add path inclusion instructions 2014-03-12 11:51:27 -04:00
Jake Wharton a2209ae303 Mention that adb on the path is required. 2014-03-11 22:45:41 -07:00
Jake Wharton 99f94e3552 Homebrew! 2014-03-11 20:21:19 -07:00
Jake Wharton d4d265a6b0 Merge pull request #44 from gnlnx/backtrace
Print backtrace after a native crash
2014-02-15 22:45:29 -08:00
Omar A Rodriguez bb8701b514 Print backtrace after a native crash 2014-02-14 00:31:41 -08:00
Jake Wharton 55c87865ba Prepare version 1.4.1. 2014-01-09 15:54:08 -08:00
Jake Wharton eda219681a Tweak header. 2014-01-09 15:54:03 -08:00
Jake Wharton 3360b521ba Merge pull request #42 from paleozogt/master
making pidcat robust to when the loglevel isn't one of VDIWEF
2014-01-03 14:18:26 -08:00
Aaron Simmons 5217c75ec0 making pidcat robust to when the loglevel isn't one of VDIWEF (!?) 2014-01-03 15:11:09 -07:00
Jake Wharton 4eb4e68392 Revert "Merge pull request #32 from thorikawa/fix_samsung_logcat_issue"
This reverts commit 87ad7dc1d9, reversing
changes made to aa6e3f0f69.
2013-12-02 00:50:08 -08:00
Jake Wharton 87ad7dc1d9 Merge pull request #32 from thorikawa/fix_samsung_logcat_issue
Use ps command to detect PIDs
2013-10-21 10:15:41 -07:00
Jake Wharton aa6e3f0f69 Add back-dated change log and tags. 2013-10-19 11:03:36 -07:00
Jake Wharton f386a22144 Merge pull request #36 from colriot/master
Made package arg optional.
2013-10-12 11:05:51 -07:00
colriot 41d3d4ccfc Made package arg optional. 2013-10-12 16:04:20 +02:00
Jake Wharton 09eaba028a Merge pull request #35 from trhura/master
added option to always display tag name, so that we can pipe its output ...
2013-10-07 19:56:40 -07:00
Thura Hlaing 6b6034ab67 fixed unicode print bug 2013-09-23 16:16:35 +06:30
Thura Hlaing bf51754642 added option to always display tag name, so that we can pipe its output and filter by tags 2013-09-12 10:17:00 +06:30
Poly Takahiro Horikawa 98ff1fbf90 Add unit to interval constant name 2013-08-21 17:32:46 -07:00
Poly Takahiro Horikawa 675bfcf889 Add thread task to check ps command regularly 2013-08-21 16:27:10 -07:00
Poly Takahiro Horikawa 18674c501c Added pid initializer using ps command 2013-08-21 15:02:07 -07:00
Jake Wharton 1e997a26e8 Merge pull request #30 from mlc/tabs_to_spaces
Replace tabs with four spaces.
2013-07-18 18:45:31 -07:00
mike castleman f643e4c3b4 Replace tabs with four spaces.
It appears that java stack dumps contain the tab character. This causes
line length computation to be messed up, so (on at least some
terminals), the lines end up wrapping twice -- once when we hit the
right edge of the terminal, and then again a few characters later when
indent_wrap() inserts a newline. By using spaces, where pidcat and the
terminal can agree on the width of the character, we obviate this
problem.
2013-07-18 16:38:04 -04:00
Jake Wharton eb0c5b2b58 Merge pull request #29 from codebutler/master
Ignore bad utf8 data. Fixes #22.
2013-07-15 13:42:35 -07:00
Eric Butler 2ae38a1955 Ignore bad utf8 data. Fixes #22. 2013-07-15 11:27:20 -07:00
Jake Wharton cc3857b8af Merge pull request #28 from dmarcato/master
Better regex for line detection
2013-07-12 08:45:12 -07:00
Dario Marcato 83dde7639a Fix trim changes 2013-07-12 15:03:40 +02:00
Dario Marcato c39bd56415 Better regex 2013-07-12 14:56:14 +02:00
Jake Wharton 908c21b4bf Merge pull request #27 from xperimental/simple-select
Add arguments for selecting device/emulator analogue to adb
2013-07-07 08:52:07 -07:00
Robert Jacob e7a02cbefb Added arguments for selecting device/emulator analogue to adb. 2013-07-07 17:50:47 +02:00
Jake Wharton 9e8c6daa0d Merge pull request #26 from xperimental/fix-bugline
Fix bug line matching.
2013-07-07 08:05:12 -07:00
Robert Jacob 064a73d2dc Fix bug line matching. 2013-07-07 16:13:27 +02:00
Jake Wharton 9ca81d87df Remove craziness around native tag bug line regex. 2013-07-03 16:35:50 -07:00
Jake Wharton a99784eaa5 Add 'F' level to log levels. 2013-06-24 09:16:07 -07:00
Jake Wharton 571826e8c0 UTF-8 decode and trim each line.
Closes #18.
2013-06-19 14:18:52 -07:00
Jake Wharton 106a4ceacd Code style tweaks. 2013-06-19 11:05:43 -07:00
Lucio Maciel d1ca77b0e9 Add support for -s device_serial option
It will pass the '-s serial_number' option to adb to select
which device to monitor
2013-06-19 08:36:09 -03:00
Jake Wharton f624fe4b22 Merge pull request #12 from shawnma/master
Support logcat level filtering
2013-06-18 18:37:57 -07:00
Jake Wharton d6819b04ae Use subprocess for adb command. Do not fail if we can't get terminal size. 2013-06-18 18:32:11 -07:00
Jake Wharton e14490a6e7 Merge branch 'master' of https://github.com/JakeWharton/pidcat 2013-06-18 08:26:24 -07:00