SRADA-772: Implemented save trace functionality in DA CLI.
authorMaria Guseva <m.guseva@samsung.com>
Tue, 7 Jun 2016 16:40:07 +0000 (19:40 +0300)
committerMaria Guseva <m.guseva@samsung.com>
Fri, 1 Jul 2016 08:24:03 +0000 (17:24 +0900)
commita34587aad4de8ab18482987e78873eb593ac3084
treef37991065a3ca1fa26d54419eea63818a3318c6d
parenta0ed2a87c031aff8ab6810653141610340352361
SRADA-772: Implemented save trace functionality in DA CLI.

* CliInternals.saveTrace() - new method.
* StopCommand.processCommandInternal() - fixed to print correct output path.
* TracingProcessManager.createTracingProcess() - set output file name as an
argument for starting new tracing process.
* TracingProcess.saveTrace() - new method.
* TracingProcess.performAllTasks() - do saving trace and check its result
before return.
* Project.init() - extracted the filename construction to the separate
public static method constructSaveName() to be reusable in CLI.
* TracingProcessCommunicationTest.interruptCommunication() - test fixed to
stub saveTrace with true result.

Change-Id: I6e940ca97caf137bd74ca8efaf54904384a357c8
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/CliInternals.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/commands/StopCommand.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/manager/TracingProcessManager.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/tracing/TracingProcess.java
org.tizen.dynamicanalyzer.cli/test/src/org/tizen/dynamicanalyzer/cli/tracing/TracingProcessCommunicationTest.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/project/Project.java