blob: 6e5654c33844b82f63f028ed6c58cec4a2be7926 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "stderr_writer.h"
#include <util/stream/str.h>
using namespace NLWTrace;
bool TStderrActionExecutor::DoExecute(TOrbit&, const TParams& params) {
TString ParamValues[LWTRACE_MAX_PARAMS];
Probe->Event.Signature.SerializeParams(params, ParamValues);
TStringStream ss;
ss << Probe->Event.GetProvider() << "." << Probe->Event.Name;
for (ui32 i = 0; i < Probe->Event.Signature.ParamCount; ++i) {
ss << " " << Probe->Event.Signature.ParamNames[i] << "=" << ParamValues[i];
}
ss << "\n";
Cerr << ss.Str();
return true;
}
|