You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/internal/Profiling.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ see next section.
63
63
## logTiming
64
64
65
65
Function `simulate!(..., logTiming=true, ...)` has keyword argument `logTiming`. When set to true,
66
-
the result of the `@timeit` macro of the [TimerOutputs](https://github.com/KristofferC/TimerOutputs.jl) package is shown. Function `simulate!(..)` and `Modia3D` are instrumented with this timer.
66
+
the result of the `@timeit` macro of the [TimerOutputs](https://github.com/KristofferC/TimerOutputs.jl) package is shown. Function `simulate!(..)` and `Modia3D` are instrumented with this timer.
67
67
Example:
68
68
69
69
```julia
@@ -164,16 +164,16 @@ is the following:
164
164
165
165
1.`1.363270 seconds` is the time for the first evaluation of `getDerivatives!`.
166
166
This time is nearly completely used for compilation of this function
167
-
167
+
168
168
2.`0.002773 seconds` is the time for the second evaluation of `getDerivatives!`.
169
169
This time is nearly irrelevant for the timing of `@instantiateModel.`
170
-
170
+
171
171
3.`2.540190` seconds is the total time spent in `@instantiateModel`, including the
172
172
two calls of `getDerivatives!`. This time, together with (1.) shows the following:
173
173
-`0.47*2.5 = 1.1` seconds are used to process the model, generate `getDerivatives!` and
174
174
process `getDerivatives!` twice.
175
175
-`0.53*2.5 = 1.32` seconds are used to compile `getDerivatives!`.
176
-
176
+
177
177
178
178
The meaning of column `Section` is the following:
179
179
@@ -208,8 +208,8 @@ The meaning of column `Section` is the following:
208
208
|`Modia3D_2 computeKinematics!`| Time to compute accelerations with qdd = unit vector. |
209
209
|`Modia3D_2 computeForcesAndResiduals`| Time to compute forces/torques/residuals for M(q)*qdd. |
210
210
|`Modia3D_3`| Time of `leq_mode == -1`. |
211
-
|`Modia3D_3 visualize!`| Time of `for obj in updateVisuElements ... visualize(..)`. |
212
-
|`Modia3D_3 exportAnimation`| Time of `for obj in allVisuElements ... push!(objectData, dat)`|
211
+
|`Modia3D_3 visualize!`| Time of `for obj in visualObject3Ds ... visualize(..)`. |
212
+
|`Modia3D_3 exportAnimation`| Time of `for obj in visualObject3Ds ... push!(objectData, dat)`|
213
213
|`Modia3D_4 isTerminal`| Time of `exportAnimation` and `closeVisualization` during termination. |
0 commit comments