[BLACKBOX] Real time & garbage collection
----boundary-LibPST-iamunique-1745745614_-_-
Content-type: text/plain
Folks,
I have produced a product for a company (surprisingly in Switzerland)
that smooths the position of detected eyes from a webcam.
I show two sets of eyes: the original, as given to me by a face
detection dll and my smoothed version of the original.
Every once in a while the images seem to hang (1 second) and
then start to move again.
The author of the face dll claims he doesn't see that effect.
So, I am wondering whether the BlackBox garbage collector is
kicking in. This is just a hypothesis and want to explore it with
the rest of you.
How can I determine (be notified) when the garbage collector starts
and stops?
Is it possible to inhibit the garbage collector? That is, can I create a
safe region of code where the garbage collector will not be called?
I don't believe I am doing NEW during the eye smoothing operations
but then again I may have over looked a place or places in my code
where I do. How can I determine whether NEW is being called while
the code is running?
By pressing ctrl-alt-del I can watch the total amount of memory that my
process is using and it seems to be fairly constant so if I am calling
NEW it is not of any great amount.
Does the garbage collector mark and sweep through all of allocated memory
or just memory that has been added since the last time it was called (just
curious)?
Do you have a suggestions? Any tools in BlackBox that could answer some of
these questions?
-Doug Danforth
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-1745745614_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3NcZmNoYXJzZXQwIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYy
XGZuaWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIg
TmV3O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1
O30NClx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjQgDQp7XCpcaHRtbHRhZzI0MyA8
IURPQ1R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ICAgfUkgaGF2ZSBwcm9kdWNl
ZCBhIHByb2R1Y3QgZm9yIGEgY29tcGFueSAoc3VycHJpc2luZ2x5IGluDQp7XCpcaHRtbHRhZzQg
XHBhciB9XGh0bWxydGYgIFxodG1scnRmMCANCntcKlxodG1sdGFnODQgICAgIH1Td2l0emVybGFu
ZCkNCntcKlxodG1sdGFnMTE2IDxicj59XGh0bWxydGYgXGxpbmUNClxodG1scnRmMCANCntcKlxo
dG1sdGFnNCBccGFyIH0NCntcKlxodG1sdGFnODQgICAgIH10aGF0IHNtb290aHMgdGhlIHBvc2l0
aW9uIG9mIGRldGVjdGVkIGV5ZXMgZnJvbSBhIHdlYmNhbS4NCntcKlxodG1sdGFnMTE2IDxicj59
XGh0bWxydGYgXGxpbmUNClxodG1scnRmMCANCntcKlxodG1sdGFnNCBccGFyIH0NCntcKlxodG1s
dGFnODQgICAgIH0NCntcKlxodG1sdGFnMTE2IDxicj59XGh0bWxydGYgXGxpbmUNClxodG1scnRm
MCANCntcKlxodG1sdGFnNCBccGFyIH0NCntcKlxodG1sdGFnODQgICAgIH1JIHNob3cgdHdvIHNl
dHMgb2YgZXllczogdGhlIG9yaWdpbmFsLCBhcyBnaXZlbiB0byBtZSBieSBhIGZhY2UNCntcKlxo
dG1sdGFnMTE2IDxicj59XGh0bWxydGYgXGxpbmUNClxodG1scnRmMCANCntcKlxodG1sdGFnNCBc
cGFyIH0NCntcKlxodG1sdGFnODQgICAgIH1kZXRlY3Rpb24gZGxsIGFuZCBteSBzbW9vdGhlZCB2
ZXJzaW9uIG9mIHRoZSBvcmlnaW5hbC4NCntcKlxodG1sdGFnMTE2IDxicj59XGh0bWxydGYgXGxp
bmUNClxodG1scnRmMCANCntcKlxodG1sdGFnNCBccGFyIH0NCntcKlxodG1sdGFnODQgICAgIH0N
CntcKlxodG1sdGFnMTE2IDxicj59XGh0bWxydGYgXGxpbmUNClxodG1scnRmMCANCntcKlxodG1s
dGFnNCBccGFyIH0NCntcKlxodG1sdGFnODQ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QgICB9e1wqXGh0bWx0YWc3Mn1caHRtbHJ0ZlxwYXJ9XGh0bWxydGYw
DQoNCntcKlxodG1sdGFnNTggPC9ib2R5Pn0NCntcKlxodG1sdGFnMiBccGFyIH0NCntcKlxodG1s
dGFnMjcgPC9odG1sPn0NCntcKlxodG1sdGFnMyBccGFyIH0NCntcKlxodG1sdGFnNjQgPHA+fVxo
dG1scnRmIFxwYXINClxodG1scnRmMCBcaHRtbHJ0ZiB7XGh0bWxydGYwIA0Ke1wqXGh0bWx0YWc0
IFxwYXIgfS0tLS0NCntcKlxodG1sdGFnNCBccGFyIH1caHRtbHJ0ZiAgXGh0bWxydGYwIFRvIHVu
c3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRv
IExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSA0Ke1wqXGh0bWx0YWc0IFxwYXIgfVxodG1scnRmICBc
aHRtbHJ0ZjAgXGh0bWxydGZ9fQBWQExJU1RTLk9CRVJPTg==
----boundary-LibPST-iamunique-1745745614_-_---
Received on Mon Jun 27 2011 - 22:20:16 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:30:13 UTC