aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs/ddmuilib/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Logcat autoscroll behavior update.Siva Velusamy2011-10-121-28/+41
| | | | | | | | | | | | Rather than checking the position of the thumb every time entries are added, we listen to the scroll bar being moved up or down by the user. In addition, also update the scrolling behavior whenever entries in the table are selected. Auto scrolling will stop if anything but the last entry is selected. Change-Id: I7b32e9c42bc8e2ad01171b61a5a9ef09d8d0a7b1
* Remove non-actionable log statement.Siva Velusamy2011-10-101-4/+0
| | | | Change-Id: I18064d048603c61a5f7d046bbb4cdb39181159de
* Fix NPE when getCurrentDevice() == null.Siva Velusamy2011-10-101-1/+13
| | | | Change-Id: I0f9eaf599b5ab22487408ea74d597ea61a22793f
* Add a new implementation for symbol resolution.Siva Velusamy2011-10-103-13/+436
| | | | | | | | | | The old implementation can still be used by setting the env variable ANDROID_DDMS_OLD_SYMRESOLVER. With the new one, all errors are collected, and displayed in the UI at the end, grouping similar errors together. Change-Id: Ibf2fa2122109b2eaf37579d65a3d0b18f475b436
* Add a whitespace character when scanning across tokens.Siva Velusamy2011-10-091-1/+6
| | | | Change-Id: I6473c1e987c37fb69f808c26e2a7e0f451ab1d34
* Minor refactor: keep sizes of snapshot ArrayList's in sync.Siva Velusamy2011-10-061-8/+12
| | | | Change-Id: I30aef911df1146ff9a64c4d08c4371c2937d4e94
* Add support for importing saved heap data.Siva Velusamy2011-10-062-4/+347
| | | | Change-Id: I8552af1754f5093dcdb156f7f81e3beef776835a
* Model diff snapshot as a subtype of a regular snapshot.Siva Velusamy2011-10-064-27/+94
| | | | Change-Id: Ic701255c586530214b51a1553b66aa60c6c7b538
* Provide a way to show/hide the filters column.Siva Velusamy2011-09-292-8/+40
| | | | Change-Id: I7c94daa006987a0983cdb3cee02a35f6e678d86e
* Use a text box instead of a browser in tooltip area.Siva Velusamy2011-09-291-10/+4
| | | | Change-Id: Ica610ef4cefffaef3b6404a425c8b4551e741676
* Display tooltips only for long messages.Siva Velusamy2011-09-292-2/+36
| | | | | | | | | Currently, the tooltips are displayed for all logcat messages. This patch makes them show up only if the logcat messages are longer than the width of the column in which they are displayed, i.e., tooltips will be displayed only for those messages that could be clipped. Change-Id: Ib5bbce7d055656d2cc8063efdf5fed5910b24ad0
* Check for scrolling before refreshing the table.Siva Velusamy2011-09-281-1/+4
| | | | Change-Id: Id65b11216a8240e3297072f0af094d69d924a8b3
* Add support for exporting heap data.Siva Velusamy2011-09-281-2/+61
| | | | Change-Id: Ica8de494934195f30b75b8295d0908e3aacdefff
* Add support for Select All & Copy Paste.Siva Velusamy2011-09-282-4/+81
| | | | Change-Id: I4b41b6ee5a7a5600ca3b37d3addf1dce7d1e072a
* Construct NativeStackCallInfo with full symbol address.Siva Velusamy2011-09-283-15/+18
| | | | | | | | | Addr2line constructs NativeStackCallInfo for a symbol using its offset within the library as the address. This patch is a minor change to make it use the address in the executable instead of the offset in the library. Change-Id: I3e3e960f6c5abefac83b670e3ab23a78c57a8e56
* Append prefix "Z" only for Zygote allocations.Siva Velusamy2011-09-232-2/+2
| | | | | | | Cross checked with vendor/google/tools/nativeheapdump and made sure that output of both tools match. Change-Id: I129791ec42e7c0f4197fd59f687477b3d82e4d20
* Provide ability to view just the new allocations.Siva Velusamy2011-09-231-17/+68
| | | | | | | | Rather than viewing the entire snapshot, users can now view just the allocations that have happened since the previous snapshot. Change-Id: I6115fdcd3928db775d8b77c078c9fce2539779ac
* Add support for filtering out zygote allocations.Siva Velusamy2011-09-225-15/+114
| | | | | | | Maintain separate list of non zygote allocations and switch to displaying the filtered list based on user input. Change-Id: Ib1fbbcb2ada55255a2f9dad02f3cf1dea18cbeda
* Show percentage of total heap size for each row.Siva Velusamy2011-09-222-5/+34
| | | | Change-Id: Iabfb5f246ca5c22cf0097300e66ba128b5174562
* Make library to be the first column in the details view.Siva Velusamy2011-09-222-11/+11
| | | | | | | | | | | There are two reasons for this change: 1. When allocations are grouped by library, it is nice to have the library in the first column immediately signifying the grouping. 2. The first column is always left aligned on some platforms (Linux). This is not the right alignment for showing numbers (they should be right aligned). Change-Id: I36a3fef17265da41e3e6d709f38d3fd6e28d233b
* Support grouping of allocations by library.Siva Velusamy2011-09-226-40/+367
| | | | | | | | | | | | Currently, all allocations are displayed as a list sorted by the size of the allocation. This patch set enables the toolbar checkbox to group the list of allocations by library. When this is checked, the display refreshes to show a tree with the root nodes being libraries, and their children being the list of allocations made from that library. Change-Id: Ibb61242db8c6e58d300f767f0b2b11b6b7a9530d
* Add support for user specifying search paths in the UI.Siva Velusamy2011-09-222-10/+89
| | | | | | Fix Addr2line to use the search path to locate binaries. Change-Id: I5ba901144faa70d4507d9286ade1cc49828d41ac
* Findbugs fix: Use Character.toString()Siva Velusamy2011-09-221-2/+2
| | | | Change-Id: I7a50c09b3cc7028caef2302154bfe6fea8bef556
* Resolve addresses to symbols in a separate thread.Siva Velusamy2011-09-212-2/+103
| | | | | | | | After retrieving a heap dump, start a thread to resolve all the addresses present in the dump. Refresh the UI with the resolved symbols once the process is complete. Change-Id: Iac2d24e91685b6c4e10985b3dfce00e79e1db10b
* Display stack trace for selected Heap Allocation.Siva Velusamy2011-09-205-24/+123
| | | | | | | Minor changes in a few other places to return List's instead of arrays. Change-Id: I25ddc25ebc1c91677d16e9d77dc0f8a51022bc1b
* New implementation of native heap - layout only.Siva Velusamy2011-09-207-0/+693
| | | | Address resolution to symbols to come in future CL's.
* Use foreach instead of iteratorSiva Velusamy2011-09-201-5/+1
| | | | Change-Id: I06c3f52313ae06ff2b51cbe6b302409bd4efca5b
* Use default system font size.Siva Velusamy2011-09-141-3/+19
| | | | | | | And make sure that the default logcat table row height is high enough for the currently used font. Change-Id: Ibfabb05b92add42c6d0acb2b79668f93b833057f
* Fix scroll behavior on Win 7.Siva Velusamy2011-09-131-1/+6
| | | | | | | The windows scrollbar never actually touches the bottom of the scroll area. Compensate for that in the shouldScrollToLatestLog() function. Change-Id: If3178d0519cac262d9208d3cd486588f895936ff
* Do not add a border for the filters toolbar.Siva Velusamy2011-09-121-1/+1
| | | | Change-Id: I5e3f5f859905b77e9a2af7d38d970ff6b8e3172b
* Create logcat table with SWT.VIRTUAL.Siva Velusamy2011-09-092-140/+83
| | | | | | | | | | | Without SWT.VIRTUAL, the UI responsiveness goes down significantly when large numbers of logcat messages are received. Unfortunately, enabling it causes SWT to make all rows to be of the same height, thereby clipping any long messages. In such a case, the complete message can be viewed in the tooltip. Change-Id: I78d6701ccac6ad94675e1ed707700eabfe34bce8
* Make search case insensitive by default.Siva Velusamy2011-09-011-3/+19
| | | | Change-Id: Ib09281dea211cffbd5c6f8352c7002f95e99f019
* Display with transient filter selected on logcat errors.Siva Velusamy2011-09-013-2/+70
| | | | | | | | When a error message is detected on logcat, display logcat view but with a filter for the application selected so that only the relevant messages are displayed. Change-Id: Ic84c59b63519302eac286ae243b228a305288b3d
* Activate logcat view at appropriate times.Siva Velusamy2011-09-012-7/+8
| | | | | | | | | - When applications are launched (run/debug) on a device, start monitoring the logcat output on that device. - If some important message comes across, and the logcat view is not currently displayed, then activate it. Change-Id: Ib88973badde4cb2860379129dfe0eb03a3f955dc
* Move creation of LogCatReceiver to a separate factory.Siva Velusamy2011-09-015-63/+111
| | | | | | | | | | | | | | | | | Until now there was only one instance of LogCatReceiver. This instance would listen to the logcat output from the currently selected device. This patch modifies this behavior to make one LogCatReceiver responsible for listening to only one device. If there are multiple devices, then multiple instances of LogCatReceivers are instantiated. The instantiation is also moved to a separate factory. This modification allows for the scenario where the LogCatReceiver's can be instantiated independent of the UI, and are reused by the UI whenever needed. Change-Id: I46008cbd5ee41880372a62e7e09634ce2d2fc122
* Reduce the number of UI refreshes of the logcat table.Siva Velusamy2011-09-011-10/+29
| | | | | | | | | | | | | Currently, every time a logcat message is received, the UI is refreshed. If multiple messages are received in close succession, multiple refreshes are enqueued to the UI thread to be run. This results in the UI spending all its time refreshing the table. This patch adds a refresh to the queue only if there are no pending refreshes. We can do so since any refresh automatically picks up the latest state of the logcat messages received. Change-Id: I2d9df679299710e54986c86a3610d3546924aba8
* Findbugs cleanup.Tor Norbye2011-08-292-7/+9
| | | | Change-Id: I82229e75e5a33baa690ea6b0993a4d407713e7e5
* Make the logcat fifo size user configurable.Siva Velusamy2011-08-233-18/+78
| | | | | | | Add a preference where users can set the size of the message list. Defaults to 1000. Change-Id: Ia888c3802f07607274bfbdca0ade8fbda009ba55
* Make variable/method names consistent.Siva Velusamy2011-08-197-27/+27
| | | | | | | | Always use mixed case for pid: change PID to Pid. Rename getPidString() to getPid(). All changes are syntactical only.. Change-Id: I85309d46ff1a14510271f6402debdc1e17747928
* Add support for filtering by application name.Siva Velusamy2011-08-194-18/+91
| | | | Change-Id: I07be20ac89108c181cfb2793c90f5cf697a304e2
* Store source application name in logcat messages.Siva Velusamy2011-08-196-9/+164
| | | | | | | | | | logcat only provides the pid of the application that generated the message. Map the pid back to the application's name, and store it in the parsed logcat message. Modify the logcat view to display the app name in addition to the pid. Change-Id: I939ed9ca2389412473dc614bd2e0e1d302295924
* Dispose of font properly.Siva Velusamy2011-08-191-0/+4
| | | | Change-Id: Ic00711ebfe13c9f4674e0570bd3dd28f35127d62
* Add support for Select All and Copy to Clipboard actions.Siva Velusamy2011-08-181-0/+59
| | | | Change-Id: Idbf3bc093f2a049b5e0e0cd9605a6f8bdc8f7723
* Wrap messages based on font size and col width.Siva Velusamy2011-08-182-21/+78
| | | | | | | | Rather than wrapping messages at a certain size, detect the current width of the column, and wrap them if the message will exceed that width. Note that the width depends on the font used. Change-Id: I26441c5b4b7fe3e6ab00b9287c4013493e2352f8
* Use PreferenceConverter to set default font.Siva Velusamy2011-08-171-3/+7
| | | | | | Also use platform specific font. Change-Id: I0bc50c2c79c8e0e21c779ad71f3b11b8c03e99d8
* Fix issue setting font, and invalid selection on Mac.Siva Velusamy2011-08-171-3/+16
| | | | | | | | Font: fontdata should be created using PreferenceConverter.getFontData List selection: On Mac, selecting a list widget outside the list contents behaves differently than on Linux Change-Id: I696996c8b92af8211dd767f5dd1552c34b68c327
* Goto source when user double clicks on stack trace.Siva Velusamy2011-08-173-0/+134
| | | | Change-Id: Ia2693424f0106fb3aa1724c211a8e1273f3a0c28
* Use equals for value comparisonSiva Velusamy2011-08-161-1/+1
| | | | Change-Id: Ic83b797567a044ce08703d036329299ef64bcdea
* Show count of unread messages associated with each filter.Siva Velusamy2011-08-163-11/+80
| | | | Change-Id: I871ddc550b1d63844b8501a59c079b62f0de4cca
* Refactor code for filtering into LogCatFilter class.Siva Velusamy2011-08-157-204/+228
| | | | | | | | | - Move the code out of LogCatViewerFilter into LogCatFilterSettings - Rename LogCatFilterSettings to LogCatFilter as it now does the filtering as well. - Update tests appropriately. Change-Id: I68840d8292cc7ad2b3ef5415bd7a0bdd56aa4da2