aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test
AgeCommit message (Collapse)Author
2017-09-15cdv: Optimize reading of crashdump with many binariesSiri Hansen
Earlier, crashdump_viewer stored an index of all binaries in a gb_tree on startup. The binary index was also stored in the cdv_dump_index_table along with all other "=xxx" tags from the dump. The difference between the indices was that the ets table contained the addresses of the binaries as strings (the hex address found after the "=binary:" tag) and in the gb_tree this hex address was instead converted to its integer value. The index in the ets table was only used once - when creating the gb_tree. The gb_tree was used for all later looups (to map integer address to file position). This commit replaces the two storages with one new ets table, cdv_binary_index_table, using the integer value of the hex address as key, and the position in the crashdump file as value. In the case of many binaries, this makes the start of crashdump viewer faster (only one place to write), and the data usage smaller (hex address strings are no longer stored). And it avoids the gc of the gb_tree.
2017-09-13cdv: Find end of 'Last calls' sectionSiri Hansen
This is a bug fix: the end of the 'Last calls' section is meant to be an empty line, but in some situations this is not the case. This could cause the complete dump to be read and stored as 'Last calls', causing very unexpected behavior in the crashdump viewer. This commit adds a check for ": ", which indicates that a new heading has occured and thus the 'Last calls' section is completly read.
2017-09-05observer: Improve handling of UnicodeSiri Hansen
2017-05-04Update copyright yearRaimo Niskanen
2017-04-20crashdump_helper: Change compatibility to R18Björn Gustavsson
Compatibility two releases back are tested, which implies R18.
2017-03-02observer: Fix crashdump viewer testcaseBjörn-Egil Dahlberg
2017-01-26Merge branch 'maint'Siri Hansen
2017-01-26Fix observer application crash (#1296)visciang
Fix observer application crash When clicking an HTML-link to a port before the port tab has been opened for the first time, observer would crash since port info is not initiated. This is now corrected. Also, when clicking on an HTML link to a port, and the port does not exist, then pop up an info dialog saying "No such port". OTP-14151
2016-12-05Merge branch 'maint'Ingela Anderton Andin
2016-11-30[crashdump_viewer] Display abort reason when truncatedSiri Hansen
If a crashdump is truncated due to size limit reached, a new 'abort' tag with reason is added at the end of the crashdump. This reason is now displayed along with the truncated-warning.
2016-06-27Make crashdump_viewer_SUITE independent of OTP versionSiri Hansen
2016-05-26Merge branch 'siri/observer/improve-trace/OTP-13481'Siri Hansen
* siri/observer/improve-trace/OTP-13481: [observer] Update user guide [observer] Automatically add active node [observer] Allow more trace flags on procs/ports from GUI [runtime_tools] Don't trace the trace client port [runtime_tools] Allow setting trace flag 'exiting' with dbg [observer] Add more default match specs for messages [observer] Add test of new Ports tab [observer] Improve appearance in Trace tab [observer] Allow multiple select in Ports tab [observer] Make right click menu act on the "expected pid" [observer] In Trace tab, show procs/ports for selected node only [observer] Add right click menu in Table tab [observer] Add menu option to set default MS for send/receive [observer] Add tracing of ports [ttb] Allow setting trace flags on ports [observer] Set correct parent in Label dialog [observer] Add Ports tab in GUI [observer] Add functionality in GUI for trace pattern on messages [ttb] Set trace patterns on messages Conflicts: lib/observer/src/observer_wx.erl
2016-05-20[observer] Add test of new Ports tabSiri Hansen
2016-05-13Test cuddlingDan Gudmundsson
Tests on slow vnc server times out.
2016-05-04Merge branch 'siri/cuddle-master'Siri Hansen
* siri/cuddle-master: Extend timer in test Update crashdump_viewer_SUITE with new release numbers Set longer timetrap when creating dsa files Check that ssh application exists before starting netconf tests Improve error control when starting ssh in netconf test
2016-04-22observer: add debug info to ttb_SUITEDan Gudmundsson
2016-03-31Update crashdump_viewer_SUITE with new release numbersSiri Hansen
After bumping to Erlang/OTP 19, R16 dumps can no longer be created. Now we test dumps from OTP 17 and 18.
2016-03-15update copyright-yearHenrik Nord
2016-03-02Merge branch 'maint'Siri Hansen
2016-03-01Set dir for slave node's erl_crash.dumpSiri Hansen
This was earlier filename:dirname(code:which(test_server)). On Microsoft Windows, this pointed to a directory under c:/Program Files, and in later versions this directory is no longer writable. The framework (common_test) log dir is now used instead.
2016-02-17Makefiles: Remove test_server from include path and code pathBjörn Gustavsson
Since no test suites includede test_server.hrl, there is no need to have test_server in the include path or code path.
2016-02-17Eliminate use of test_server.hrl and test_server_line.hrlBjörn Gustavsson
As a first step to removing the test_server application as as its own separate application, change the inclusion of test_server.hrl to an inclusion of ct.hrl and remove the inclusion of test_server_line.hrl.
2015-06-18Change license text to APLv2Bruce Yinhe
2015-02-19observer: Add SASL log view for processescrownedgrouse
Add a new menu to toggle log view. Disabled by default. Disabled if rb_server already started on observed node, in order not to interfere with somebody else. If enabled, add a tab in process view where log entries related to pid process are shown. Need an observed node with at least a version R16B2, due to the use of newly capability to rb to write into a file descriptor (on the observing node).
2014-05-28Merge branch 'maint'Siri Hansen
2014-05-27[cdv] Allow registered name as owner of timer in crashdumpSiri Hansen
crashdump_viewer would crash if the owner of a timer was specified as the process' regisered name. This has been corrected.
2014-05-26Merge branch 'maint'Dan Gudmundsson
2014-04-23Update crashdump_viewer_SUITE with new release numbersSiri Hansen
After bumping to Erlang/OTP 18, R15 dumps can no longer be created. Now we test dumps from R16B and 17.
2014-04-17observer: Destroy the wx envDan Gudmundsson
Ensure that the server exists on close, even though linked to the test process
2014-04-15Test TweaksDan Gudmundsson
2014-04-14Enable testsDan Gudmundsson
2014-04-03Merge branch 'siri/master-cuddle-with-tests'Siri Hansen
* siri/master-cuddle-with-tests: Stop nodes after test cases in release_handler_SUITE Add debug printouts in release_handler_SUITE:upgrade_gg Improve printout of command when encoding is utf-8 Add debug printouts in crashdump_viewer_SUITE:load_file
2014-04-03Add debug printouts in crashdump_viewer_SUITE:load_fileSiri Hansen
2014-03-28Merge branch 'dgud/observer/test'Dan Gudmundsson
* dgud/observer/test: observer: Add simple test and add debug hooks in app
2014-03-28observer: Add simple test and add debug hooks in appDan Gudmundsson
Add hooks in observer so that we can do some basic testing on it
2014-03-26Improve crashdump_viewer_SUITE:start_stop test caseSiri Hansen
Instead of setting a timer and expecting all processes to be terminated, set a monitor and wait for them to terminate.
2014-03-25Fix crash in crashdump_viewer when node has multiple creationsSiri Hansen
A node to which we have references to multiple instances (creations) will have an information line in the crashdump like this: Creation: 1 2 ... This would earlier crash because crashdump_viewer would try to do list_to_integer on the value after "Creation: ". This is now corrected. This correction also helps the case when the emulator is debug compiled, since the line could then be Creation: 1 (refc=1)
2014-02-24Add test suites performing app and appup file checksTobias Schlager
Add the mentioned test suites for *all* library and touched non-library applications.
2014-01-27observer: Fix progress dialog creationDan Gudmundsson
Should not call showModal on a wxProgressdialog it is already display (see doc) and it hangs on MacOSX until someone presses the menu.
2014-01-27observer: renamed crashdump_viewer files and fixed makefilesSiri Hansen
2014-01-27observer: improve wx version of crashdump_viewerSiri Hansen
* bugfixes * add first test * remove unused code
2013-11-29Merge branch 'maint'Henrik Nord
2013-11-26[observer] Fix copy/paste error in observer_SUITE:app_file/1Siri Hansen
2013-05-15[observer] Update crahshdump_viewer_SUITE for R17Siri Hansen
2013-03-14[observer] Add debug printouts in ttb_SUITESiri Hansen
To troubleshoot failed test case trace_resumed_after_node_restart on windows.
2013-03-04[observer] Extend timer to allow trace msgs to arrive over tcp/ipSiri Hansen
Some tests fail (mostly on windows) every now and then with too few trace messages in log. Extending the timer from 200 to 500 ms to see if this is the reason. Plus removing a compiler warning in ttb_SUITE.
2013-03-04[observer] Kill slave node between tests in etop_SUITESiri Hansen
To avoid that the second test case fails (due to duplicate name) if the first fails - always kill the slave node after each test case.
2013-01-09Prepare OTP files for Unicode as default encodingHans Bolinder
2012-12-17[observer] Set ERL_CRASH_DUMP_SECONDS/=-1 on old releasesSiri Hansen
Else, crashdumps can not be generated.
2012-12-17[observer] Fix crashdump_viewer tests for R16Siri Hansen
Generate dumps for r14, r15 and r16. Save generated dumps if test fails.