Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Lahfa RaitoBezarius

View GitHub Profile
View valgrindcheck.out
==27306== Memcheck, a memory error detector
==27306== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==27306== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==27306== Command: ./Client
==27306==
--27306-- WARNING: Serious error when reading debug info
--27306-- When reading debug info from /usr/lib/nvidia-current/libGL.so.295.40:
--27306-- Can't make sense of .got.plt section mapping
--27306-- WARNING: Serious error when reading debug info
--27306-- When reading debug info from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40:
@RaitoBezarius
RaitoBezarius / client_profile.txt
Created Sep 18, 2012
Client performance analyis
View client_profile.txt
This file has been truncated, but you can view the full file.
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
22.22 0.02 0.02 83035 0.00 0.00 Animation::Update()
11.11 0.03 0.01 8681 0.00 0.00 std::_Bit_iterator_base::_Bit_iterator_base(unsigned long*, unsigned int)
11.11 0.04 0.01 5817 0.00 0.00 __gnu_cxx::new_allocator<char>::new_allocator()
11.11 0.05 0.01 1053 0.01 0.01 boost::_bi::value<WorldSession*>::value(WorldSession* const&)
@RaitoBezarius
RaitoBezarius / server_profile.txt
Created Sep 18, 2012
Server performance analysis
View server_profile.txt
This file has been truncated, but you can view the full file.
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
50.00 0.01 0.01 2496 0.00 0.00 __gnu_cxx::new_allocator<char>::allocate(unsigned int, void const*)
50.00 0.02 0.01 2265 0.00 0.01 boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service::thread_info&, boost::asio::detail::op_queue<boost::asio::detail::task_io_service_operation>&, boost::system::error_code const&)
0.00 0.02 0.00 182412 0.00 0.00 __gnu_cxx::__normal_iterator<boost::shared_ptr<SpellBox>*, std::vector<boost::shared_ptr<SpellBox>, std::allocator<boost::shared_ptr<SpellBox> > > >::base() const
View client_profile_analyse.txt
This file has been truncated, but you can view the full file.
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
25.00 0.06 0.06 std::less<unsigned int>::operator()(unsigned int const&, unsigned int const&) const
8.33 0.08 0.02 3810203 0.00 0.00 std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_M_data() const
8.33 0.10 0.02 336808 0.00 0.00 Animation::Update()
8.33 0.12 0.02 71018 0.00 0.00 std::allocator<unsigned int>::allocator(std::allocator<unsigned int> const&)
View Client_Profile.txt
This file has been truncated, but you can view the full file.
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
18.60 0.08 0.08 897067 0.00 0.00 Animation::Update()
16.28 0.15 0.07 std::less<unsigned int>::operator()(unsigned int const&, unsigned int const&) const
11.63 0.20 0.05 6174358 0.00 0.00 std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_M_data() const
6.98 0.23 0.03 31872 0.00 0.00 std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_M_rep() const
View test_unpack.cpp
#include <iostream>
#include <msgpack.hpp>
#include <fstream>
#include <string>
#include <stdexcept>
int main()
{
std::ifstream in("data_python");
std::string file_content;
View test_pack.py
import umsgpack
with open('data_python', 'wb') as f:
f.write(umsgpack.packb(('random', 'data')))
View gist:17298c091a10b4bb9dd7
Verifying I am +raitobezarius on my passcard. https://onename.com/raitobezarius
View gist:192ca354276f7ee91228
Verifying I am +raitobezarius on my passcard. https://onename.com/raitobezarius
View test_result
Using rethinkdb binary /home/raitobezarius/rethinkdb/build/release/rethinkdb
Python 2.7 interpreter: /usr/bin/python2.7, driver: /home/raitobezarius/rethinkdb/drivers/python
== Starting: connections/twisted_connection.py2.7 (T+ 0.9 sec)
>>> Failed connections/twisted_connection.py2.7 with exit code None after 0.0 sec (T+ 0.9 sec)
Failed starting testTraceback (most recent call last):
File "./test-runner", line 1436, in run
test.startTest(server=self.server)
File "./test-runner", line 1016, in startTest
self.testProcess = subprocess.Popen(self.command, stdout=self.__console_output, stderr=self.__console_output, preexec_fn=os.setpgrp, env=envVariables)