Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions __info/Build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[официальная инструкция по настройке окружения](https://wiki.eclipse.org/Trace_Compass/Development_Environment_Setup)
> Double-click the .target file that corresponds to your Eclipse version (tracecompass-e4.5.target, at the time of this writing).

Последняя выложенная версия сейчас 4.15

С tracecompass-baseline-5.3.0 точно собирается.
Binary file added __info/flame_chart_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added __info/flame_chart_example_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ protected boolean considerEvent(ITmfEvent event) {
if (!funcEntryEvents.contains(eventName)) {
return null;
}
Long address = (Long) event.getContent().getField(fLayout.fieldAddr()).getValue();
return TmfStateValue.newValueLong(address);
String method_name = (String) event.getContent().getField("method_name").getValue(); //$NON-NLS-1$
return TmfStateValue.newValueString(method_name);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,22 @@ public String eventLibcPosixMemalign() {

@Override
public String eventCygProfileFuncEntry() {
return "lttng_ust_cyg_profile:func_entry";
return "hotspot:method__entry";
}

@Override
public String eventCygProfileFastFuncEntry() {
return "lttng_ust_cyg_profile_fast:func_entry";
return "hotspot:method__entry";
}

@Override
public String eventCygProfileFuncExit() {
return "lttng_ust_cyg_profile:func_exit";
return "hotspot:method__return";
}

@Override
public String eventCygProfileFastFuncExit() {
return "lttng_ust_cyg_profile_fast:func_exit";
return "hotspot:method__return";
}

// ------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.internal.provisional.statesystem.core.statevalue.CustomStateValue;
import org.eclipse.tracecompass.internal.statesystem.core.Activator;
//import org.eclipse.tracecompass.internal.statesystem.core.Activator;
import org.eclipse.tracecompass.statesystem.core.exceptions.StateValueTypeException;

/**
Expand Down Expand Up @@ -148,13 +148,17 @@ public static TmfStateValue newValueString(@Nullable String strValue) {
* Make sure the String does not contain "weird" things, like ISO
* control characters.
*/
String value = "";
for (char c : strValue.toCharArray()) {
if (Character.isISOControl(c)) {
Activator.getDefault().logError("Trying to use invalid string: " + strValue); //$NON-NLS-1$
throw new IllegalArgumentException();
// if (Character.isISOControl(c)) {
// Activator.getDefault().logError("Trying to use invalid string: " + strValue); //$NON-NLS-1$
// throw new IllegalArgumentException();
// }
if (!Character.isISOControl(c)) {
value += c;
}
}
StringStateValue newValue = new StringStateValue(strValue);
StringStateValue newValue = new StringStateValue(value);
STRING_CACHE[offset] = newValue;
return newValue;
}
Expand Down