Skip to content

Commit

Permalink
Mark some more functions with UTF_NOINSTRUMENTATION
Browse files Browse the repository at this point in the history
These are called very often for a single hardware test case.

•ShowTopFunctions(50)
 Function Calls | Sum of called Lines | Procedure                              | Function                        | Line |
----------------|---------------------|----------------------------------------|---------------------------------|------|
 12419          | 173866              | MIES_Utilities.ipf                     | IsConstant                      | 5805 |
 2998           | 80514               | MIES_DAEphys.ipf                       | DAP_ParsePanelControl           | 4172 |
 2900           | 17402               | MIES_MiesUtilities.ipf                 | GetHardwareType                 | 2366 |
 2674           | 16656               | MIES_MiesUtilities.ipf                 | ParseChannelTypeFromString      | 460  |
 2454           | 46594               | MIES_Utilities.ipf                     | RemovePrefix                    | 1613 |
 1956           | 9780                | MIES_MiesUtilities.ipf                 | ChannelTypeToString             | 436  |
 1953           | 34689               | MIES_MiesUtilities.ipf                 | GetPanelControl                 | 486  |
 1872           | 5616                | MIES_WaveDataFolderGetters.ipf         | GetDevicePath                   | 634  |
  • Loading branch information
t-b committed Feb 6, 2024
1 parent 06835a8 commit 5464328
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Packages/MIES/MIES_DAEphys.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,8 @@ End
/// Counterpart to GetPanelControl()
///
/// @return 0 if the control name could be parsed, one otherwise
///
/// UTF_NOINSTRUMENTATION
Function DAP_ParsePanelControl(ctrl, channelIndex, channelType, controlType)
string ctrl
variable &channelIndex, &channelType, &controlType
Expand Down
4 changes: 4 additions & 0 deletions Packages/MIES/MIES_MiesUtilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ End
///
/// @param channelType channel type
/// @param allowFail [optional, defaults to false] return NaN on unknown channel types (true) or assert (false)
///
/// UTF_NOINSTRUMENTATION
Function ParseChannelTypeFromString(string channelType, [variable allowFail])

allowFail = ParamIsDefault(allowFail) ? 0 : !!allowFail
Expand Down Expand Up @@ -2364,6 +2366,8 @@ End
/// @brief Return the hardware type of the device
///
/// @return One of @ref HardwareDACTypeConstants
///
/// UTF_NOINSTRUMENTATION
threadsafe Function GetHardwareType(device)
string device

Expand Down
4 changes: 4 additions & 0 deletions Packages/MIES/MIES_Utilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,8 @@ End
/// the begin of str
/// @param regExp [optional, defaults to false] If start is a simple string (false)
/// or a regular expression (true)
///
/// UTF_NOINSTRUMENTATION
threadsafe Function/S RemovePrefix(string str, [string start, variable regExp])
variable length, pos, skipLength, err
string regExpResult
Expand Down Expand Up @@ -2493,6 +2495,8 @@ End

/// @brief Remove a string prefix from each list item and
/// return the new list
///
/// UTF_NOINSTRUMENTATION
threadsafe Function/S RemovePrefixFromListItem(string prefix, string list, [string listSep, variable regExp])
string result, entry
variable numEntries, i
Expand Down

0 comments on commit 5464328

Please sign in to comment.