`
文章列表

fprof简例

P = list_to_pid("<0.375.0>").   fprof:trace([start, {procs, P}]). 让fprof开始跟踪   运行需要跟踪的对象   fprof:trace(stop) 停止跟踪   fprof:profile(). 处理跟踪过程   fprof:analyse({dest, "profile.txt"}) 分析性能数据    
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files   markdown https://github.com/thomsmits/markdown_npp   使用方法: http://blog.csdn.net/wayllenzhang/article/details/8566280

ranch源码阅读

cowboy源码分析:http://www.cnblogs.com/poti/archive/2013/01/21/2870302.html   遗留问题:   1、supervisor:   start_link,init -> {RestartStrategy, MaxR, MaxT, [ChildSpec]}   start,terminate,delete,restart   which,count,check   childspec(): {Id, StartFunc, Rest ...
-module(test_monitor). -compile(export_all). test() -> P = spawn(fun() -> receive ok -> ok end end), erlang:monitor(process, P), P ! test, io:format("send test~n"), timer:sleep(1000), receive Msg -> io:format("~p~n", [Msg]) ...

eprof简例

-module(test_eprof). -compile(export_all). test_tc() -> timer:tc(?MODULE, test1, [99999999]). test1(0) ->ok; test1(N) -> test1(N-1). test_eprof() -> eprof:start(), eprof:profile([self()], ?MODULE, test1, [999999]), eprof:stop_profiling(), eprof: ...
测试结果见:http://www.ostinelli.net/erlang-listskeyfind-or-proplistsget_value/   lists:keyfind是BIF,proplists:get_value的PropLists元素个数有限制。   listserv:keysearch也是BIF,但是兼容版本,不如lists:keyfind方便。     结论:使用lists:keyfind。   ======================== lists模块中的bif:   %% Bifs: member/2, reverse/2 %% Bi ...
【问题】在进行大并发性能呼叫时,经常遇到一个问题:客户端端口用尽。【问题原因】经过分析,主要原因在于连接断开后会有一个timewait时间,继续保留socket、占用该端口。【解决方案】方案1起初总是在timewait上做文章,想尽可能减小timewait的影响:1、修改/proc/sys/net/ipv4/tcp_fin_timeout2、修改/proc/sys/net/ipv4/tcp_max_tw_buckets等等方案2:问题可能会有所减轻,但总是不能根除。一次偶然机会,从朋友那里听到什么东东能支持单台机器“上百万并发量”,于是考虑如何解决tcp客户端端口不够的问题。因为默认65535端 ...
pyuv for windows prebuilt 适用于python 2.7 使用的是fork版本:github上的tempbottle-pyuv-a80c929

erlang绿化

主要是windows版本的绿化 1、erlang依赖于vc运行时库 例如5.9.1依赖于msvcr100.dll,需要把msvcr100.dll拷贝到下面2个目录: erl5.9.1\erts-5.9.1\bin erl5.9.1\bin 2、erl.exe可执行文件根据同目录下的erl.ini中设置的环境变量加载其他动态库,因此需要修改下面两个目录的erl.ini erl5.9.1\erts-5.9.1\bin erl5.9.1\bin

git for windows

http://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git

subversion下载

http://www.collab.net/downloads/subversion
字体:中文雅黑,英文Mocano
socket封装 ========== SocketWrapper.h ================ C语言的socket跨平台包装 https://github.com/maxiaojun/SocketWrapper/blob/master/SocketWrapper.h odsocket.[h,cpp] ================ C++封装 http://my.oschina.net/odison/blog/9439 本身貌似有些问题例如linux下没有包含errno.h。 建议用SocketWrapper改写。
http://www.velocityreviews.com/forums/t683512-compiling-python-on-windows-how-to-deal-with-modules.html
http://nikhilm.github.com/uvbook/
Global site tag (gtag.js) - Google Analytics