{"id":441,"date":"2008-05-04T09:02:04","date_gmt":"2008-05-04T09:02:04","guid":{"rendered":"http:\/\/6teen.ru\/?p=613"},"modified":"2008-05-04T09:02:04","modified_gmt":"2008-05-04T09:02:04","slug":"8959","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=441","title":{"rendered":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430"},"content":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\n\nprocedure TForm.DebugProcessStatus(s: string);\nvar\npmc: PPROCESS_MEMORY_COUNTERS;\ncb: Integer;\nMemStat: tMemoryStatus;\nbegin\nMemStat.dwLength := SizeOf(MemStat);\nGlobalMemoryStatus(MemStat);\n\n\/\/ Get the total and available system memory\nTotalMemoryLabel.Caption := 'Total system memory: ' +\nFormatFloat('###,###', MemStat.dwTotalPhys \/ 1024) + ' KByte';\nFreeMemoryLabel.Caption := 'Free physical memory: ' +\nFormatFloat('###,###', MemStat.dwAvailPhys \/ 1024) + ' KByte';\n\n\/\/ Get the used memory for the current process\ncb := SizeOf(TProcessMemoryCounters);\nGetMem(pmc, cb);\npmc^.cb := cb;\nif GetProcessMemoryInfo(GetCurrentProcess(), pmc, cb) then\nbegin\nNewWorkingMemory := Longint(pmc^.WorkingSetSize);\nProcessMemoryLabel.Caption := 'Process-Memory: ' +\nFormatFloat('###,###', NewWorkingMemory \/ 1024) + ' KByte';\nMemoryLeakLabel.Caption := 'Memory Loss: ' +\nFormatFloat('###,###', (NewWorkingMemory - OldWorkingMemory) \/ 1024) + ' KByte';\nOldWorkingMemory := NewWorkingMemory;\nend;\nFreeMem(pmc);\n\nDebugStatusLabel.Caption := 'Status: ' + s;\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[448,453],"tags":[1330,275,913,942,1664],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/441"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=441"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}