Commit Graph
123 Commits
Author SHA1 Message Date
David Wu 53306b82b3 explicitly run adb command in brief format 2015-06-06 11:14:02 +08:00
Jake Wharton e2ee65a9f2 You left out the only fix people care about dummy. 2015-05-25 18:02:35 -07:00
Jake Wharton 961ded1b1d Prepare version 2.0.0. 2015-05-25 17:52:07 -07:00
Jake Wharton a2604bb793 Change default tag length to 23. 2015-05-25 17:50:58 -07:00
takahiromandJake Wharton 215212683a add feature filter running app 2015-05-25 17:28:59 -07:00
Jake Wharton a77f3e3697 Merge pull request #77 from eighthave/master
bash completion for pidcat
2015-05-25 17:23:07 -07:00
Jake Wharton 39133c42fe Merge pull request #96 from jmfayard/patch-1
Trick: brew can build pidcat from latest git commit
2015-05-25 17:10:56 -07:00
Jean-Michel Fayard ef7d544fe2 correct markdown syntax 2015-04-24 16:26:39 +02:00
Jean-Michel Fayard cd4df5ad67 Trick: brew can build pidcat from latest git commit
This is what I used to get pidcat working on Android 5.1 / Nexus 4
2015-04-24 11:31:02 +02:00
Jake Wharton 660a8197f5 Merge pull request #94 from dmarcato/master
Allow tag filters with regex
2015-03-17 12:56:45 -05:00
Dario Marcato 95749e44a3 Allow tag filters with regex 2015-03-14 18:15:28 -07:00
Jake Wharton b050e6a491 Merge pull request #93 from JakeWharton/jw/five-one
Add support for Android 5.1.
2015-03-14 16:14:14 -05:00
Jake Wharton d85c10c25d Add support for Android 5.1. 2015-03-14 02:36:24 -04:00
Jake Wharton d23340de05 Merge pull request #88 from Pixplicity/master
Obtain unknown process IDs using `adb shell ps`
2015-02-17 17:56:36 -08:00
Jake Wharton e5bc8c8766 Merge pull request #89 from aried3r/master
Add --version, remove trailing spaces in help texts
2015-02-17 17:06:26 -08:00
Anton Rieder c0620537c5 Add --version, remove trailing spaces in help texts 2015-02-17 14:11:25 +01:00
Paul Lammertsma e6fa71ef98 reintegrated pull request #71 (https://github.com/JakeWharton/pidcat/pull/71) onto master 2015-02-17 10:56:38 +01:00
Jake Wharton 00ebabb4d4 Merge pull request #81 from laramaki/master
Added ignore tag switch
2015-01-19 23:23:26 -08:00
laramaki fd999b79f7 Add ignore tag switch. Useful when inspecting the full log on over flooded log devices 2015-01-19 19:26:46 -02:00
Hans-Christoph Steiner 1126d14126 bash completion for pidcat
I just wrote up a bash completion script, this goes into `/etc/bash_completion.d/` then the next time you launch `/bin/bash`, `pidcat` will have full, interactive completion, including automatic fetching of device serials and package names, i.e.:

```bash
pidcat --serial e [Tab]
pidcat --serial emulator-5554
```

and

```bash
pidcat info.g [Tab]
pidcat info.guardianproject.o [Tab]
pidcat info.guardianproject.otr.app.im
```

Use under whatever free software license you want: (GPL, LGPL, MIT, BSD, Apache, public domain, etc)
2014-10-27 11:23:16 -04:00
Jake Wharton 4c79363e5a Support any number of spaces before the PID. 2014-10-07 14:10:01 -07:00
Jake Wharton 06eb3b486d Merge pull request #74 from ahupp/fix-space-bug
Fix failure to match new format start messages
2014-10-06 19:53:44 -07:00
Adam Hupp 82c3305c7b Fix failure to match new format start messages
For low pids there's a space in front of the PID in the log message.
All my testing was on high pids :(
2014-10-06 17:18:08 -07:00
Jake Wharton e5d1d8fcde Merge pull request #73 from ahupp/master
Handle alternative start proc log line
2014-10-01 17:35:13 -07:00
Adam Hupp 493e12a55c Handle alternative log format for process start
Some phones (like my samsung) do not log the 'Start proc ...' line in
logcat to indicate process start.  In my case it does log a line like

E/dalvikvm(pid): >>>>>> com.my.package [ more stuff ]

This commit adds support for that format to pidcat.
2014-10-01 10:20:35 -07:00
Adam Hupp 092ffc1869 Revert "Print line if we have not seen any pids created yet"
This reverts commit cd01ccf720.
2014-09-29 21:12:51 -07:00
Jake Wharton a21ee6e688 Merge pull request #68 from adstro/master
Add support for tag(s) filtering
2014-08-19 12:35:25 -07:00
Adam Stroud 3cfd3a839b Add support for tag(s) filtering 2014-08-19 14:02:23 -04:00
Jake Wharton 3882068abd Merge pull request #67 from brennantaylor/print_if_no_pids
Print line if we have not seen any pids created yet
2014-08-06 14:36:52 -07:00
Brennan Taylor cd01ccf720 Print line if we have not seen any pids created yet
This specifically handles the case where you get a log snippet that may
not have any pid creation lines in it and pidcat ends up filtering
everything out. In this case we just print the line if we haven't seen
any pids yet.

An alternative would be allowing filter by pid, however I find grep
works fine for that.
2014-08-06 14:24:06 -07:00
Jake Wharton 499b8a348a Merge pull request #63 from brennantaylor/catfile
When there is data on stdin we use it instead of adb
2014-07-15 15:34:58 -07:00
Brennan Taylor 0827fafb44 When there is data on stdin we use it instead of adb 2014-07-15 13:32:36 -07:00
Jake Wharton 00fe21b76b Merge pull request #62 from brennantaylor/imports
Cleanup unused imports
2014-07-15 11:53:12 -07:00
Brennan Taylor 1ed466123e Cleanup unused imports 2014-07-15 11:45:33 -07:00
Jake Wharton d266cc1592 Merge pull request #60 from Dracks/master
min_level case unsensitive
2014-07-01 22:36:48 -07:00
Jaume Singla 78a1421215 min_level case unsensitive 2014-07-01 20:17:25 +02:00
Jake Wharton 99e6f50354 Merge pull request #57 from wtud/master
Add option to clear the entire log before running
2014-05-15 08:17:16 -07:00
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