- What can be traced?
- How can trace events be specified?
- "match specifications": twisty passages, all alike
- WTF, can I just use DTrace and drink my coffee/beer/whisky in peace?
- Trace delivery mechanisms: pick one of two
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%------------------------------------------------------------------- | |
%%% @author <[email protected]> | |
%%% @copyright (C) 2013, | |
%%% @doc | |
%%% | |
%%% @end | |
%%% Created : 18 Apr 2013 by <[email protected]> | |
%%%------------------------------------------------------------------- | |
-module(dns_proxy_srv). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEPS = $(CURDIR)/deps | |
DIALYZER_OPTS = -Wunderspecs | |
# List dependencies that should be included in a cached dialyzer PLT file. | |
# DIALYZER_DEPS = deps/app1/ebin \ | |
# deps/app2/ebin | |
DEPS_PLT = {{name}}.plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(shout). | |
-export([start/0]). | |
-import(lists, [map/2, reverse/1]). | |
-define(CHUNKSIZE, 24576). | |
start() -> | |
spawn(fun() -> | |
start_parallel_server(9000), | |
%% now go to sleep - otherwise the listening socket will be closed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 在线画报socket.io服务器端示范 | |
* | |
* @author yongboy | |
* @time 2012-3-27 | |
* @version 1.0 | |
*/ | |
public class WhiteboardServer { | |
public static void main(String[] args) { | |
MainServer chatServer = new MainServer(new WhiteboardHandler(), 80); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 定义中文字符Unicode编码范围 | |
*/ | |
private static final String CN_PATTERN = "[\\u4e00-\\u9fbb]+"; | |
public static final String subCnString(String str, int targetLen) { | |
if (str == null || str.equals("")) | |
return str; | |
if (targetLen < 1) |