diff options
author | Bernd Hufmann | 2015-02-10 19:55:07 +0000 |
---|---|---|
committer | Bernd Hufmann | 2015-02-11 23:08:52 +0000 |
commit | d3c2bf8d8ad992b78eab0922f6ba5e447399007b (patch) | |
tree | 2ef36899d460f638df9a8bcd4aab4323baf7e696 /doc | |
parent | 0fca9497222ac6fd379d1b3cb1ce29f22e7186a1 (diff) | |
download | org.eclipse.tracecompass-d3c2bf8d8ad992b78eab0922f6ba5e447399007b.tar.gz org.eclipse.tracecompass-d3c2bf8d8ad992b78eab0922f6ba5e447399007b.tar.xz org.eclipse.tracecompass-d3c2bf8d8ad992b78eab0922f6ba5e447399007b.zip |
tmf: Don't open trace files with validation confidence 0 (Bug 436444)
... and only one valid applicable trace type is available.
Change-Id: Id6494df2bf78d1be079ef12e729d6a869c81d260
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/41566
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/org.eclipse.tracecompass.doc.dev/doc/Developer-Guide.mediawiki | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/org.eclipse.tracecompass.doc.dev/doc/Developer-Guide.mediawiki b/doc/org.eclipse.tracecompass.doc.dev/doc/Developer-Guide.mediawiki index f69ae8ed7f..10850ae1c8 100644 --- a/doc/org.eclipse.tracecompass.doc.dev/doc/Developer-Guide.mediawiki +++ b/doc/org.eclipse.tracecompass.doc.dev/doc/Developer-Guide.mediawiki @@ -83,14 +83,14 @@ org.eclipse.tracecompass.tracing.examples.core.trace.nexus.NexusTrace.java. In this example, the '''validate''' function first checks if the file exists, then makes sure that it is really a file, and not a directory. Then we attempt to read the file header, to make sure that it is really a Nexus Trace. -If that check passes, we return a TmfValidationStatus with a confidence of 20. +If that check passes, we return a TraceValidationStatus with a confidence of 20. -Typically, TmfValidationStatus confidences should range from 1 to 100. 1 meaning +Typically, TraceValidationStatus confidences should range from 1 to 100. 1 meaning "there is a very small chance that this trace is of this type", and 100 meaning "it is this type for sure, and cannot be anything else". At run-time, the -auto-detection will pick the the type which returned the highest confidence. So +auto-detection will pick the type which returned the highest confidence. So checks of the type "does the file exist?" should not return a too high -confidence. +confidence. If confidence 0 is returned the auto-detection won't pick this type. Here we used a confidence of 20, to leave "room" for more specific trace types in the Nexus format that could be defined in TMF. |