You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

  1. %% Ignore Msg Hole Name
  2. -define(eTpfHole, '$eTpfHole').
  3. %% 消息截取默认配置项
  4. -define(tcmIsCut, false).
  5. -define(tcmDepth, 3).
  6. -define(tcmListSize, 32).
  7. -define(tcmMapSize, 32).
  8. -define(tcmTupleSize, 32).
  9. -define(tcmBinSize, 128).
  10. -define(tcmBitSize, ?tcmBinSize * 8).
  11. -define(tcmNestStruct, 6).
  12. %% 类型声明
  13. -export_type([input/0, userInput/0, traceOpts/0, tracerOpts/0]).
  14. -type pattern() :: module() | {app, atom()} | {callback, module(), atom()}.
  15. -type scope() :: {scope, [pid() | port() | all | processes | ports |existing | existing_processes | existing_ports |new | new_processes | new_ports]}.
  16. -type input() :: [pattern() | scope()].
  17. -type userInput() :: pattern() | input().
  18. -type traceOpts() :: #{
  19. mode => trace | profile
  20. , poolId => any()
  21. , poolSize => pos_integer()
  22. , send => boolean()
  23. , running => boolean()
  24. }.
  25. -type tracerOpts() :: #{
  26. %% tracer for socket
  27. port => pos_integer()
  28. %% tracer for file
  29. ,filename_prefix => string()
  30. , max_size => pos_integer()
  31. , events_per_frame => pos_integer()
  32. %% tracer for console
  33. %% trace msg term cut cfg
  34. ,tcmIsCut => boolean() %% 是否cut trace msg term
  35. ,tcmDepth => boolean() %% term cut时保留的最大深度
  36. ,tcmListSize => boolean() %% List term cut时保留的最大数量
  37. ,tcmMapSize => boolean() %% Map term cut时保留的最大数量
  38. ,tcmTupleSize => boolean() %% Tuple term cut时保留的最大数量
  39. ,tcmBitSize => boolean() %% Bits term cut时保留的最大字节数
  40. ,tcmNestStruct => boolean() %% 复合结构 term cut时保留的最大数量
  41. }.