SQUEAK_SPY environment variable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SQUEAK_SPY environment variable

stes
 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Does anybody know what the -spy option or the variable SQUEAK_SPY is doing ?

platforms/unix/vm-display-X11/sqUnixX11.c:int withSpy= 0;
platforms/unix/vm-display-X11/sqUnixX11.c:  if (getenv("SQUEAK_SPY")) withSpy= 1;
platforms/unix/vm/sqUnixMain.c:       int    withSpy= 0;
platforms/unix/vm/sqUnixMain.c:  else if (!strcmp(argv[0], VMOPTION("spy")))       { withSpy = 1; return 1; }

Also I wonder why both .c files (sqUnixX11.c and sqUnixMain.c) both define
the same global variable (they both define withSpy).

I'd expect one of them to define it, and the other declare it extern.
But I don't immediately see where 'withSpy' is used.

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfST8iAAoJEAwpOKXMq1MaU6cH/RmKzH2tRKLan4gdI8NDaVow
XGOT09pmKjZNqiRxd8DAGXQ+4X/SopbLv6n7qRKFVCyscH9KRQPiZ5SwV36cKAYo
Pwiekgn7G0g1choGne4Xav8HJTBsbZ6Q5zEiB8razD7ScYFwLVkP6ghY2QtAAfkY
wa88aOsDyZjIpLOgEO/PXIyioZ4Qi5mr333FmjAHLON+P4Z4oRRXuRNuWFThf70y
2334DMxTwCXgFUY/zfBSR1YGvUPu1no558AYZPjI137xZ4fk93mMSBDAu4koFMeI
XQkSRrf7fw9wZGemg6Lpe43S9OAO/HNFJJokgjuZOTIPuNUzjMamCD9UDf6BZX0=
=3zbk
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: SQUEAK_SPY environment variable

stes
 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


When I set the variable,

$ export SQUEAK_SPY=1
$ /usr/bin/squeak Squeak5.3-19431-64bit.image

It seems to have no effect, but maybe I'm mistaken.

There's a description

./unix/vm/sqUnixMain.c:      printf("  "VMOPTION("spy")"                  enable the system spy\n");

But what is the effect precisely of 'enabling the system spy" ??

Thanks!
David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfSUJBAAoJEAwpOKXMq1Max1QH/0UfOkmbjk3XpRwdPakTxWGd
u98XBw7QB+NZdBB3LQwOWnTSticFW35IPuljCIQQ0a9FAKT7wJAzsBbYbe/+p/cT
EZFzjGyoB/rbMiqjwe5qROti0QFNqFsXs7Lr419Tti12TZXjiOZAULBKFcAw5pKk
I4sIPn7RgPQbBSwfZsJs43FgK1I9+IEZTIM3IUOmn+7SjmUbRz5gW1iQpoYMdQD8
4gfbzuNh20qniiH/8Y2z5v6Uq6dcH6nNDdAvVcoR6oZiSCafFXuCXigHCYZzNlAk
HrKH0nUc/UeFClAOUDPf2Nkg2Bp20FmNXqckTKhdIZBAfHf6B01ZXTrv1NavTE4=
=E3OR
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: SQUEAK_SPY environment variable

stes
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Maybe the VM -spy option is somehow related to spyOn: and MessageTally ??

http://wiki.squeak.org/squeak/4210

It's just a guess.
I don't immediately see any documentation on this on wiki.squeak.org.

Perhaps -spy is related to Squeak Performance Tuning ?

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfSUp7AAoJEAwpOKXMq1Man20H/RfGW/v9VQK7h2XcbQ0Tfu0s
g4Bd+hbxK/dFfb2++M6dYhv14abFiXsbOIQNFZ8R4+koFCrWyplMLpYW98mscNU8
nJZR8UyNvhRB7GGNYYcUwpG6tKOBeObPSnviII8DCrNFFv7lOury6kiXryraOYtJ
Baq2Qsx7dS40AsI1ALfXiFL7Vgk9sr975L/iEdPnjkGJ8HU6hFg827yN7C59DhVx
QLW156AUZ1yDX9pHACzZK7dasaFOyFLLBv/umnsXcpzyquYVvDTlSlWR+Q8JA+eO
J3V2DKOSrGFNkcVFT58ZaI04W7n5lLHY7admkF7mOpFD8ES/K8p0mdRBLZsqPaA=
=NVsy
-----END PGP SIGNATURE-----