X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2Fxprofiler.pas;h=35b70df8263c385d53324afd0ed0f9cc9b9778e5;hb=af1787819fb852141cfca39a570927c0d48ddb6a;hp=9584fe63aac03b7473ec5983cc380dc4c376d325;hpb=fb8592aa898a8da05a47bfe50ff8272de4fdc995;p=d2df-sdl.git diff --git a/src/shared/xprofiler.pas b/src/shared/xprofiler.pas index 9584fe6..35b70df 100644 --- a/src/shared/xprofiler.pas +++ b/src/shared/xprofiler.pas @@ -22,7 +22,7 @@ interface uses SysUtils, - {$IF DEFINED(LINUX)} + {$IF DEFINED(LINUX) OR DEFINED(ANDROID)} {$DEFINE STOPWATCH_IS_HERE} unixtype, linux {$ELSEIF DEFINED(WINDOWS)} @@ -468,8 +468,8 @@ begin begin if (xpsecs[idx].name = aName) then begin - if (idx = xpscur) then raise Exception.Create('profiler error(0): dobule resume: "'+aName+'"'); - if (xpsecs[idx].prevAct <> -1) then raise Exception.Create('profiler error(1): dobule resume: "'+aName+'"'); + if (idx = xpscur) then raise Exception.Create('profiler error(0): double resume: "'+aName+'"'); + if (xpsecs[idx].prevAct <> -1) then raise Exception.Create('profiler error(1): double resume: "'+aName+'"'); xpsecs[idx].prevAct := xpscur; xpscur := idx; xpsecs[idx].timer.resume();