Sponsored Content
Operating Systems OS X (Apple) How can I direct messages from mac console.app to a log file? Post 303038477 by dallas88 on Wednesday 4th of September 2019 01:20:52 AM
Old 09-04-2019
Thanks Neo. I'm going to go back and review the system profiler and my results. I initially ran the system profiler full detail and did a search for this msg (AppleCamIn: power_on_hardware) and others. Looking at the profiler output but didn't see it using find. This msg and others I listed appear when I'm switching the audio and video inputs during a video conference session.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Re-direct the error msg to log file

Hi All, I have an expression as follows:- a=`expr ${i} + ${j}` >> $log_file 2>&1 Here, if any of the values i or j or both happens to be empty then the "expr" returns error as "expr: 0402-050 Syntax error." My problem is I am not able to re-direct this error to the log file. Its is getting... (4 Replies)
Discussion started by: rony_daniel
4 Replies

2. Shell Programming and Scripting

Direct the output of a script to a log file

Hi, I have a script to compare 2 files. file1=$1 file2=$2 num_of_records_file1=`awk ' END { print NR } ' $file1` num_of_records_file2=`awk ' END { print NR } ' $file2` i=1 while do sed -n "$i"p $file1 > file1_temp sed -n "$i"p $file2 > file2_temp diff file1_temp... (5 Replies)
Discussion started by: autosys_nm
5 Replies

3. Shell Programming and Scripting

Set default app for file type on Mac

Hi there, We have 2 apps on our customers machines that can both open files with the same file extension. Is there any way via shell commands to set which application should be the default? Essentially, I'm hoping to replicate Get Info > Open With > Change All using a shell script, but I just... (0 Replies)
Discussion started by: davewg
0 Replies

4. Shell Programming and Scripting

Need Mac .sh to run command line app in seperate terminal

Hello, currently we are executing a .sh from terminal. The current .sh looks like this: #!/usr/bin/env bash /Users/user/my.app/Contents/MacOS/my & -- Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
Discussion started by: yoyoyo777
0 Replies

5. UNIX for Dummies Questions & Answers

re-direct to log file

#!/bin/ksh -x cd /tmp/tj ftp -n servername.com << DONE user username password as put test.log quit close DONE echo "testing..." sh -x scriptname, and it shows all, but username, as, put, quit, close, DONE. how can i see those ? (1 Reply)
Discussion started by: tjmannonline
1 Replies

6. Shell Programming and Scripting

Manipulating sed Direct Input to Direct Output

Hi guys, been scratching round the forums and my mountain of resources. Maybe I havn't read deep enough My question is not how sed edits a stream and outputs it to a file, rather something like this below: I have a .txt with some text in it :rolleyes: abc:123:xyz 123:abc:987... (7 Replies)
Discussion started by: the0nion
7 Replies

7. Cybersecurity

Best practice to allow 3rd party app to read messages file.

What is the best practice to allow a 3rd party health monitoring app to read the messages file. Since messages is a system file and is owned by root the app cannot read the file. I don't want to run the app as root so how should I allow the app to read the file. The read function is actually built... (2 Replies)
Discussion started by: slwiley
2 Replies
profiler(n)							   Tcl Profiler 						       profiler(n)

__________________________________________________________________________________________________________________________________________________

NAME
profiler - Tcl source code profiler SYNOPSIS
package require Tcl 8.3 package require profiler ?0.3? ::profiler::init ::profiler::dump pattern ::profiler::print ?pattern? ::profiler::reset ?pattern? ::profiler::suspend ?pattern? ::profiler::resume ?pattern? ::profiler::sortFunctions key _________________________________________________________________ DESCRIPTION
The profiler package provides a simple Tcl source code profiler. It is a function-level profiler; that is, it collects only function-level information, not the more detailed line-level information. It operates by redefining the Tcl proc command. Profiling is initiated via the ::profiler::init command. COMMANDS
::profiler::init Initiate profiling. All procedures created after this command is called will be profiled. To profile an entire application, this command must be called before any other commands. ::profiler::dump pattern Dump profiling information for the all functions matching pattern. If no pattern is specified, information for all functions will be returned. The result is a list of key/value pairs that maps function names to information about that function. The information about each function is in turn a list of key/value pairs. The keys used and their values are: totalCalls The total number of times functionName was called. callerDist A list of key/value pairs mapping each calling function that called functionName to the number of times it called function- Name. compileTime The runtime, in clock clicks, of functionName the first time that it was called. totalRuntime The sum of the runtimes of all calls of functionName. averageRuntime Average runtime of functionName. descendantTime Sum of the time spent in descendants of functionName. averageDescendantTime Average time spent in descendants of functionName. ::profiler::print ?pattern? Print profiling information for all functions matching pattern. If no pattern is specified, information about all functions will be displayed. The return result is a human readable display of the profiling information. ::profiler::reset ?pattern? Reset profiling information for all functions matching pattern. If no pattern is specified, information will be reset for all func- tions. ::profiler::suspend ?pattern? Suspend profiling for all functions matching pattern. If no pattern is specified, profiling will be suspended for all functions. It stops gathering profiling information after this command is issued. However, it does not erase any profiling information that has been gathered previously. Use resume command to re-enable profiling. ::profiler::resume ?pattern? Resume profiling for all functions matching pattern. If no pattern is specified, profiling will be resumed for all functions. This command should be invoked after suspending the profiler in the code. ::profiler::sortFunctions key Return a list of functions sorted by a particular profiling statistic. Supported values for key are: calls, exclusiveTime, compile- Time, nonCompileTime, totalRuntime, avgExclusiveTime, and avgRuntime. The return result is a list of lists, where each sublist con- sists of a function name and the value of key for that function. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category profiler of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
performance, profile, speed profiler 0.3 profiler(n)
All times are GMT -4. The time now is 09:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy