Skip to content

Instantly share code, notes, and snippets.

View RaitoBezarius's full-sized avatar
🎯
Very restricted availability

Ryan Lahfa RaitoBezarius

🎯
Very restricted availability
View GitHub Profile
@RaitoBezarius
RaitoBezarius / valgrindcheck.out
Created September 3, 2012 17:49
Valgrind memcheck last
==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 September 18, 2012 20:06
Client performance analyis
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&)
11.11 0.06 0.01 860 0.01 0.01 char* std::__copy_move_a<true, char*, char*>(char*, char*, char*)
@RaitoBezarius
RaitoBezarius / server_profile.txt
Created September 18, 2012 20:08
Server performance analysis
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
0.00 0.02 0.00 146064 0.00 0.00 __gnu_cxx::__normal_iterator<PathfinderNode**, std::vector<PathfinderNode*, std::allocator<PathfinderNode*> > >::__n
@RaitoBezarius
RaitoBezarius / client_profile_analyse.txt
Created September 19, 2012 12:32
Performance analysis
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&)
8.33 0.14 0.02 19993 0.00 0.00 std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_M_rep() const
@RaitoBezarius
RaitoBezarius / Client_Profile.txt
Created September 20, 2012 16:02
Performance analysis
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
4.65 0.25 0.02 19664 0.00 0.00 std::_Rb_tree_iterator<std::pair<unsigned long long const, WorldObject*> >::operator!=(std::_Rb_tree_iterator<std::pair<unsigned long long const, WorldObject*> > const&) const
@RaitoBezarius
RaitoBezarius / test_unpack.cpp
Created February 19, 2014 16:13
C++ unpacker
#include <iostream>
#include <msgpack.hpp>
#include <fstream>
#include <string>
#include <stdexcept>
int main()
{
std::ifstream in("data_python");
std::string file_content;
@RaitoBezarius
RaitoBezarius / test_pack.py
Created February 19, 2014 16:13
Python packer
import umsgpack
with open('data_python', 'wb') as f:
f.write(umsgpack.packb(('random', 'data')))
Verifying I am +raitobezarius on my passcard. https://onename.com/raitobezarius
Verifying I am +raitobezarius on my passcard. https://onename.com/raitobezarius
@RaitoBezarius
RaitoBezarius / test_result
Created June 24, 2015 11:02
Tests results
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)