Skip to content

Instantly share code, notes, and snippets.

Greg Young gregoryyoung

Block or report user

Report or block gregoryyoung

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1a003718786b404837bda6440e5be044
➜ new-eventstore-poc git:(master) ✗ ./shitbird
file_write flush=true doing 524288 iterations of 4096 size for 2147483648 total
\Total time 359052.524000
Value Percentile TotalCount 1/(1-Percentile)
0.000 0.000000 517534 1.00
0.000 0.100000 517534 1.11
0.000 0.200000 517534 1.25
0.000 0.300000 517534 1.43
0.000 0.400000 517534 1.67
View gist:5ad4405250bd4e5fc5d57ee6dca31bfc
0.000 0.200000 524279 1.25
0.000 0.300000 524279 1.43
0.000 0.400000 524279 1.67
0.000 0.500000 524279 2.00
0.000 0.550000 524279 2.22
0.000 0.600000 524279 2.50
0.000 0.650000 524279 2.86
0.000 0.700000 524279 3.33
0.000 0.750000 524279 4.00
0.000 0.775000 524279 4.44
View gist:19fe860002a680d4ce84fb3c71b4db0b
- threads();;
val it :
System.Collections.Generic.IEnumerable<PrivateEye.Bridge.profilersession.ThreadInformation>
= seq
[PrivateEye.Bridge.profilersession.ThreadInformation {Stack = null;};
PrivateEye.Bridge.profilersession.ThreadInformation
{Stack = [|PrivateEye.Bridge.profilersession.StackEntry;
PrivateEye.Bridge.profilersession.StackEntry|];};
PrivateEye.Bridge.profilersession.ThreadInformation
{Stack = [|PrivateEye.Bridge.profilersession.StackEntry|];};
View gist:b6df540d8df8e2602a95179109cd2267
> startListening();;
Starting TCP listening on TCP endpoint: 127.0.0.1:4444.
val it : unit = ()
> startRecording("whatever.out", false);;
val it : unit = ()
> TCP connection accepted
- stopRecording();;
val it : unit = ()
> Lost connection to 127.0.0.1:40470 'Success'
View gist:de46e07f04b1dd8f67c6
greg@demon:~/src/scratch$ ./shitbird 127.0.0.1
3ebc6c46-e272-4226-bcb5-aa93c411ed0d
read 22 bytes
read message bytes = 18
header is Command: Heartbeat Request, flags 0, correlation_id: bce2adc8-1e78-4d3f-9c80-9c8095a178ac
response is Command: Heartbeat Response, flags 0, correlation_id: bce2adc8-1e78-4d3f-9c80-9c8095a178ac
read 22 bytes
read message bytes = 18
View gist:9738c8f558602a4428fa
greg@demon:~/src/PrivateI/scriptcs$ scriptcs -install PrivateEyePack -PackageVersion 0.1.5
Installing packages...
Installed: PrivateEyePack 0.1.5
Package installation succeeded.
Saving packages in scriptcs_packages.config...
Creating scriptcs_packages.config...
Added PrivateEyePack (v0.1.5) to scriptcs_packages.config
Successfully updated scriptcs_packages.config.
greg@demon:~/src/PrivateI/scriptcs$ scriptcs
scriptcs (ctrl-c to exit or :help for help)
View gist:ab4aab547fdb35d51808
greg@clown:~/src/PrivateI/scriptcs$ scriptcs -install PrivateEyePack -packageversion 0.1.2
Installing packages...
Installed: PrivateEyePack 0.1.2
Package installation succeeded.
Saving packages in scriptcs_packages.config...
Creating scriptcs_packages.config...
Added PrivateEyePack (v0.1.2) to scriptcs_packages.config
Successfully updated scriptcs_packages.config.
greg@clown:~/src/PrivateI/scriptcs$ scriptcs
scriptcs (ctrl-c to exit or :help for help)
View gist:31449701a026d3f4f636
> Profiler.EnableAllocationTracking()
> Profiler.Data.Types.Take(10)
[
{
"Name": ".HeapNode[]",
"ThrownCount": 0,
"AllocatedCount": 9,
"AllocatedSize": 2592
},
{
View gist:49b4b4336a58e3584139
Download:
windows: http://download.geteventstore.com/binaries/EventStore-OSS-Win-v3.5.0.zip
linux: http://download.geteventstore.com/binaries/EventStore-OSS-Ubuntu-14.04-v3.5.0.tar.gz
Extract zip/tarball
run EventStore.ClusterNode.exe --run-projections=none
run EventStore.TestClient --write-window 1
in testclient
wrfl 10 100000
View gist:f763ad2e085e58710f48
greg@clown:~/Downloads/IronScheme$ mono IronScheme.Console32-v4.exe
IronScheme 1.0.98-fd8c0b4 github.com/leppie/IronScheme © 2007-2016 Llewellyn Pritchard (.NET 4.0 64-bit)
> (ironscheme-test)
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr) <0xffffffff>
at (wrapper alloc) object.AllocVector (intptr,intptr) <0xffffffff>
at System.Collections.Generic.List`1<T_REF>.set_Capacity (int) <0x00061>
at System.Collections.Generic.List`1<T_REF>.EnsureCapacity (int) <0x00085>
You can’t perform that action at this time.