[英]Launching a process with arguments and profile with shark
I need to sample a (cli) application with shark and pass parameters to it like so: 我需要使用shark采样一个(cli)应用程序,并将参数传递给它,如下所示:
shortest-path <input-ref-littleendian|diff -u - output-ref
How can I do this with shark
? 我该如何用
shark
做这件事? Shark assumes that the parameters i need to pass to the launched cli app are for shark itself, not the process. Shark假定我需要传递给启动的cli应用程序的参数是针对shark本身的,而不是针对过程的。
That's not "parameters to a program", that's a shell pipeline. 这不是“程序的参数”,而是外壳程序管道。 You might need to use parenthesis to make it clear in which order things should happen, eg perhaps something like
您可能需要使用括号来清楚说明应该按照什么顺序发生,例如
$ shark ( shortest-path < input-ref-littleendian | diff -u - output-ref )
I don't have access to shark so I cannot verify this. 我没有接触鲨鱼的权限,因此无法验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.