Blog Posts

Recent posts

Windows 7 memory profiling example

less than 1 minute read

@echo off set _NT_SYMBOL_PATH=F:\src\Release\;srv*c:\WebSymbol*http://msdl.microsoft.com/downloads/symbols</p> xperf -on base xperf -start heapsession...

Windows 7 CPU performance profiling example

less than 1 minute read

@echo off set _NT_SYMBOL_PATH=f:\src\Debug\;srv*c:\WebSymbol*http://msdl.microsoft.com/downloads/symbols</p> xperf -on Latency -stackwalk profile echo...

Load a binary file with C++

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 bool LoadBinaryFile(std::wstring const& path, std::vector<unsigned char>& data) { try { std::basic_ifst...

Load a text file with C++

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 std::wstring fromAscii(const char* str) { std::wstring sOutput; int inputLength ...