passenger 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- data/NEWS +19 -1
- data/build/packaging.rb +0 -1
- data/doc/cxxapi/Constants_8h_source.html +1 -1
- data/doc/cxxapi/Logging_8h_source.html +3 -3
- data/doc/cxxapi/MessageChannel_8h_source.html +2 -2
- data/doc/cxxapi/Utils_8h_source.html +407 -397
- data/doc/cxxapi/namespacePassenger.html +32 -0
- data/doc/cxxapi/namespacemembers.html +56 -1
- data/doc/cxxapi/namespacemembers_func.html +3 -0
- data/doc/cxxapi/ngx__http__passenger__module_8h_source.html +5 -5
- data/ext/apache2/Hooks.cpp +1 -1
- data/ext/common/AgentBase.cpp +86 -11
- data/ext/common/Constants.h +1 -1
- data/ext/common/Logging.h +3 -3
- data/ext/common/LoggingAgent/FilterSupport.h +1 -0
- data/ext/common/LoggingAgent/Main.cpp +8 -1
- data/ext/common/MessageChannel.h +2 -2
- data/ext/common/Utils.cpp +27 -3
- data/ext/common/Utils.h +10 -0
- data/ext/common/Watchdog.cpp +27 -1
- data/ext/nginx/HelperAgent.cpp +8 -8
- data/ext/oxt/thread.hpp +2 -2
- data/lib/phusion_passenger.rb +1 -1
- data/lib/phusion_passenger/abstract_installer.rb +6 -0
- data/lib/phusion_passenger/abstract_request_handler.rb +13 -2
- data/lib/phusion_passenger/analytics_logger.rb +15 -4
- data/lib/phusion_passenger/dependencies.rb +11 -26
- data/lib/phusion_passenger/platform_info.rb +96 -5
- data/lib/phusion_passenger/platform_info/apache.rb +13 -3
- data/lib/phusion_passenger/platform_info/compiler.rb +5 -0
- data/lib/phusion_passenger/rack/application_spawner.rb +3 -2
- data/lib/phusion_passenger/standalone/runtime_installer.rb +0 -1
- data/lib/phusion_passenger/standalone/start_command.rb +15 -8
- data/lib/phusion_passenger/templates/standalone/config.erb +1 -0
- metadata +5 -182
- data/doc/rdoc/classes/ConditionVariable.html +0 -215
- data/doc/rdoc/classes/Exception.html +0 -120
- data/doc/rdoc/classes/GC.html +0 -113
- data/doc/rdoc/classes/IO.html +0 -221
- data/doc/rdoc/classes/PhusionPassenger.html +0 -397
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -180
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -647
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -654
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -619
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -142
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +0 -231
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +0 -588
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +0 -147
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +0 -279
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +0 -123
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Lock.html +0 -194
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +0 -299
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +0 -206
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -155
- data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +0 -367
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +0 -95
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +0 -351
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +0 -200
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +0 -410
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +0 -156
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +0 -115
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +0 -202
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
- data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +0 -273
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -162
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
- data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -673
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +0 -415
- data/doc/rdoc/classes/PhusionPassenger/NativeSupportLoader.html +0 -134
- data/doc/rdoc/classes/PhusionPassenger/Packaging.html +0 -129
- data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +0 -1972
- data/doc/rdoc/classes/PhusionPassenger/Plugin.html +0 -237
- data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -312
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -218
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +0 -114
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +0 -259
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +0 -139
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +0 -118
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +0 -135
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -378
- data/doc/rdoc/classes/PhusionPassenger/Standalone.html +0 -111
- data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +0 -252
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +0 -161
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +0 -132
- data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +0 -151
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +0 -189
- data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +0 -177
- data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +0 -341
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +0 -203
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +0 -156
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +0 -168
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +0 -86
- data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +0 -135
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -1543
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +0 -204
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +0 -171
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +0 -260
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +0 -194
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +0 -265
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +0 -120
- data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +0 -561
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -182
- data/doc/rdoc/classes/Process.html +0 -115
- data/doc/rdoc/classes/Signal.html +0 -139
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -280
- data/doc/rdoc/files/README.html +0 -157
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -130
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -135
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +0 -141
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +0 -146
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -147
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -137
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -160
- data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +0 -136
- data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +0 -133
- data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +0 -136
- data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +0 -100
- data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -179
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -132
- data/doc/rdoc/fr_class_index.html +0 -139
- data/doc/rdoc/fr_file_index.html +0 -108
- data/doc/rdoc/fr_method_index.html +0 -439
- data/doc/rdoc/index.html +0 -26
- data/doc/rdoc/rdoc-style.css +0 -187
- data/ext/common/libboost_oxt/aggregate.cpp +0 -10
- data/ext/common/libpassenger_common/aggregate.cpp +0 -16
@@ -1,194 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AnalyticsLogger::Lock</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AnalyticsLogger::Lock</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../files/lib/phusion_passenger/analytics_logger_rb.html">lib/phusion_passenger/analytics_logger.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
Object
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div class="sectiontitle">Methods</div>
|
82
|
-
<ul>
|
83
|
-
<li><a href="#M000295">lock</a></li>
|
84
|
-
<li><a href="#M000292">new</a></li>
|
85
|
-
<li><a href="#M000293">reset</a></li>
|
86
|
-
<li><a href="#M000294">synchronize</a></li>
|
87
|
-
<li><a href="#M000296">unlock</a></li>
|
88
|
-
</ul>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<div class="sectiontitle">Public Class methods</div>
|
96
|
-
<div class="method">
|
97
|
-
<div class="title">
|
98
|
-
<a name="M000292"></a><b>new</b>(mutex)
|
99
|
-
</div>
|
100
|
-
<div class="sourcecode">
|
101
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000292_source')" id="l_M000292_source">show source</a> ]</p>
|
102
|
-
<div id="M000292_source" class="dyn-source">
|
103
|
-
<pre>
|
104
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 296</span>
|
105
|
-
296: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">mutex</span>)
|
106
|
-
297: <span class="ruby-ivar">@mutex</span> = <span class="ruby-identifier">mutex</span>
|
107
|
-
298: <span class="ruby-ivar">@locked</span> = <span class="ruby-keyword kw">false</span>
|
108
|
-
299: <span class="ruby-keyword kw">end</span>
|
109
|
-
</pre>
|
110
|
-
</div>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
<div class="sectiontitle">Public Instance methods</div>
|
114
|
-
<div class="method">
|
115
|
-
<div class="title">
|
116
|
-
<a name="M000295"></a><b>lock</b>()
|
117
|
-
</div>
|
118
|
-
<div class="sourcecode">
|
119
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000295_source')" id="l_M000295_source">show source</a> ]</p>
|
120
|
-
<div id="M000295_source" class="dyn-source">
|
121
|
-
<pre>
|
122
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 316</span>
|
123
|
-
316: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lock</span>
|
124
|
-
317: <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@locked</span>
|
125
|
-
318: <span class="ruby-ivar">@mutex</span>.<span class="ruby-identifier">lock</span>
|
126
|
-
319: <span class="ruby-ivar">@locked</span> = <span class="ruby-keyword kw">true</span>
|
127
|
-
320: <span class="ruby-keyword kw">end</span>
|
128
|
-
</pre>
|
129
|
-
</div>
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
<div class="method">
|
133
|
-
<div class="title">
|
134
|
-
<a name="M000293"></a><b>reset</b>(mutex, lock_now = true)
|
135
|
-
</div>
|
136
|
-
<div class="sourcecode">
|
137
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000293_source')" id="l_M000293_source">show source</a> ]</p>
|
138
|
-
<div id="M000293_source" class="dyn-source">
|
139
|
-
<pre>
|
140
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 301</span>
|
141
|
-
301: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">mutex</span>, <span class="ruby-identifier">lock_now</span> = <span class="ruby-keyword kw">true</span>)
|
142
|
-
302: <span class="ruby-identifier">unlock</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@locked</span>
|
143
|
-
303: <span class="ruby-ivar">@mutex</span> = <span class="ruby-identifier">mutex</span>
|
144
|
-
304: <span class="ruby-identifier">lock</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lock_now</span>
|
145
|
-
305: <span class="ruby-keyword kw">end</span>
|
146
|
-
</pre>
|
147
|
-
</div>
|
148
|
-
</div>
|
149
|
-
</div>
|
150
|
-
<div class="method">
|
151
|
-
<div class="title">
|
152
|
-
<a name="M000294"></a><b>synchronize</b>() {|self| ...}
|
153
|
-
</div>
|
154
|
-
<div class="sourcecode">
|
155
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000294_source')" id="l_M000294_source">show source</a> ]</p>
|
156
|
-
<div id="M000294_source" class="dyn-source">
|
157
|
-
<pre>
|
158
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 307</span>
|
159
|
-
307: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">synchronize</span>
|
160
|
-
308: <span class="ruby-identifier">lock</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@locked</span>
|
161
|
-
309: <span class="ruby-keyword kw">begin</span>
|
162
|
-
310: <span class="ruby-keyword kw">yield</span>(<span class="ruby-keyword kw">self</span>)
|
163
|
-
311: <span class="ruby-keyword kw">ensure</span>
|
164
|
-
312: <span class="ruby-identifier">unlock</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@locked</span>
|
165
|
-
313: <span class="ruby-keyword kw">end</span>
|
166
|
-
314: <span class="ruby-keyword kw">end</span>
|
167
|
-
</pre>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
</div>
|
171
|
-
<div class="method">
|
172
|
-
<div class="title">
|
173
|
-
<a name="M000296"></a><b>unlock</b>()
|
174
|
-
</div>
|
175
|
-
<div class="sourcecode">
|
176
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000296_source')" id="l_M000296_source">show source</a> ]</p>
|
177
|
-
<div id="M000296_source" class="dyn-source">
|
178
|
-
<pre>
|
179
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 322</span>
|
180
|
-
322: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unlock</span>
|
181
|
-
323: <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@locked</span>
|
182
|
-
324: <span class="ruby-ivar">@mutex</span>.<span class="ruby-identifier">unlock</span>
|
183
|
-
325: <span class="ruby-ivar">@locked</span> = <span class="ruby-keyword kw">false</span>
|
184
|
-
326: <span class="ruby-keyword kw">end</span>
|
185
|
-
</pre>
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</div>
|
192
|
-
|
193
|
-
</body>
|
194
|
-
</html>
|
@@ -1,299 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AnalyticsLogger::Log</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AnalyticsLogger::Log</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../files/lib/phusion_passenger/analytics_logger_rb.html">lib/phusion_passenger/analytics_logger.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
Object
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div class="sectiontitle">Methods</div>
|
82
|
-
<ul>
|
83
|
-
<li><a href="#M000300">begin_measure</a></li>
|
84
|
-
<li><a href="#M000304">close</a></li>
|
85
|
-
<li><a href="#M000301">end_measure</a></li>
|
86
|
-
<li><a href="#M000302">measure</a></li>
|
87
|
-
<li><a href="#M000303">measured_time_points</a></li>
|
88
|
-
<li><a href="#M000299">message</a></li>
|
89
|
-
<li><a href="#M000297">new</a></li>
|
90
|
-
<li><a href="#M000298">null?</a></li>
|
91
|
-
</ul>
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<div class="sectiontitle">Attributes</div>
|
98
|
-
<table border='0' cellpadding='5'>
|
99
|
-
<tr valign='top'>
|
100
|
-
<td class='attr-rw'>
|
101
|
-
[R]
|
102
|
-
</td>
|
103
|
-
<td class='attr-name'>txn_id</td>
|
104
|
-
<td class='attr-desc'></td>
|
105
|
-
</tr>
|
106
|
-
</table>
|
107
|
-
|
108
|
-
<div class="sectiontitle">Public Class methods</div>
|
109
|
-
<div class="method">
|
110
|
-
<div class="title">
|
111
|
-
<a name="M000297"></a><b>new</b>(shared_data = nil, txn_id = nil)
|
112
|
-
</div>
|
113
|
-
<div class="sourcecode">
|
114
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000297_source')" id="l_M000297_source">show source</a> ]</p>
|
115
|
-
<div id="M000297_source" class="dyn-source">
|
116
|
-
<pre>
|
117
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 41</span>
|
118
|
-
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">shared_data</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">txn_id</span> = <span class="ruby-keyword kw">nil</span>)
|
119
|
-
42: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">shared_data</span>
|
120
|
-
43: <span class="ruby-ivar">@shared_data</span> = <span class="ruby-identifier">shared_data</span>
|
121
|
-
44: <span class="ruby-ivar">@txn_id</span> = <span class="ruby-identifier">txn_id</span>
|
122
|
-
45: <span class="ruby-identifier">shared_data</span>.<span class="ruby-identifier">ref</span>
|
123
|
-
46: <span class="ruby-keyword kw">end</span>
|
124
|
-
47: <span class="ruby-keyword kw">end</span>
|
125
|
-
</pre>
|
126
|
-
</div>
|
127
|
-
</div>
|
128
|
-
</div>
|
129
|
-
<div class="sectiontitle">Public Instance methods</div>
|
130
|
-
<div class="method">
|
131
|
-
<div class="title">
|
132
|
-
<a name="M000300"></a><b>begin_measure</b>(name, extra_info = nil)
|
133
|
-
</div>
|
134
|
-
<div class="sourcecode">
|
135
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000300_source')" id="l_M000300_source">show source</a> ]</p>
|
136
|
-
<div id="M000300_source" class="dyn-source">
|
137
|
-
<pre>
|
138
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 61</span>
|
139
|
-
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">begin_measure</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">extra_info</span> = <span class="ruby-keyword kw">nil</span>)
|
140
|
-
62: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">extra_info</span>
|
141
|
-
63: <span class="ruby-identifier">extra_info_base64</span> = [<span class="ruby-identifier">extra_info</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">"m"</span>)
|
142
|
-
64: <span class="ruby-identifier">extra_info_base64</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-value str">"\n"</span>, <span class="ruby-value str">""</span>)
|
143
|
-
65: <span class="ruby-identifier">extra_info_base64</span>.<span class="ruby-identifier">strip!</span>
|
144
|
-
66: <span class="ruby-keyword kw">else</span>
|
145
|
-
67: <span class="ruby-identifier">extra_info_base64</span> = <span class="ruby-keyword kw">nil</span>
|
146
|
-
68: <span class="ruby-keyword kw">end</span>
|
147
|
-
69: <span class="ruby-identifier">times</span> = <span class="ruby-constant">NativeSupport</span>.<span class="ruby-identifier">process_times</span>
|
148
|
-
70: <span class="ruby-identifier">message</span> <span class="ruby-node">"BEGIN: #{name} (#{current_timestamp.to_s(36)},#{times.utime.to_s(36)},#{times.stime.to_s(36)}) #{extra_info_base64}"</span>
|
149
|
-
71: <span class="ruby-keyword kw">end</span>
|
150
|
-
</pre>
|
151
|
-
</div>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
<div class="method">
|
155
|
-
<div class="title">
|
156
|
-
<a name="M000304"></a><b>close</b>(flush_to_disk = false)
|
157
|
-
</div>
|
158
|
-
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000304_source')" id="l_M000304_source">show source</a> ]</p>
|
160
|
-
<div id="M000304_source" class="dyn-source">
|
161
|
-
<pre>
|
162
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 108</span>
|
163
|
-
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>(<span class="ruby-identifier">flush_to_disk</span> = <span class="ruby-keyword kw">false</span>)
|
164
|
-
109: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
165
|
-
110: <span class="ruby-comment cmt"># We need an ACK here. See abstract_request_handler.rb finalize_request.</span>
|
166
|
-
111: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">write</span>(<span class="ruby-value str">"closeTransaction"</span>, <span class="ruby-ivar">@txn_id</span>,
|
167
|
-
112: <span class="ruby-constant">AnalyticsLogger</span>.<span class="ruby-identifier">timestamp_string</span>, <span class="ruby-keyword kw">true</span>)
|
168
|
-
113: <span class="ruby-identifier">result</span> = <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">read</span>
|
169
|
-
114: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">!=</span> [<span class="ruby-value str">"ok"</span>]
|
170
|
-
115: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Expected logging server to respond with 'ok', but got #{result.inspect} instead"</span>
|
171
|
-
116: <span class="ruby-keyword kw">end</span>
|
172
|
-
117: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">flush_to_disk</span>
|
173
|
-
118: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">write</span>(<span class="ruby-value str">"flush"</span>)
|
174
|
-
119: <span class="ruby-identifier">result</span> = <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">read</span>
|
175
|
-
120: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">!=</span> [<span class="ruby-value str">"ok"</span>]
|
176
|
-
121: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Invalid logging server response #{result.inspect} to the 'flush' command"</span>
|
177
|
-
122: <span class="ruby-keyword kw">end</span>
|
178
|
-
123: <span class="ruby-keyword kw">end</span>
|
179
|
-
124: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">unref</span>
|
180
|
-
125: <span class="ruby-ivar">@shared_data</span> = <span class="ruby-keyword kw">nil</span>
|
181
|
-
126: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@shared_data</span>
|
182
|
-
127: <span class="ruby-keyword kw">end</span>
|
183
|
-
</pre>
|
184
|
-
</div>
|
185
|
-
</div>
|
186
|
-
</div>
|
187
|
-
<div class="method">
|
188
|
-
<div class="title">
|
189
|
-
<a name="M000301"></a><b>end_measure</b>(name, error_encountered = false)
|
190
|
-
</div>
|
191
|
-
<div class="sourcecode">
|
192
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000301_source')" id="l_M000301_source">show source</a> ]</p>
|
193
|
-
<div id="M000301_source" class="dyn-source">
|
194
|
-
<pre>
|
195
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 73</span>
|
196
|
-
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_measure</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">error_encountered</span> = <span class="ruby-keyword kw">false</span>)
|
197
|
-
74: <span class="ruby-identifier">times</span> = <span class="ruby-constant">NativeSupport</span>.<span class="ruby-identifier">process_times</span>
|
198
|
-
75: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">error_encountered</span>
|
199
|
-
76: <span class="ruby-identifier">message</span> <span class="ruby-node">"FAIL: #{name} (#{current_timestamp.to_s(36)},#{times.utime.to_s(36)},#{times.stime.to_s(36)})"</span>
|
200
|
-
77: <span class="ruby-keyword kw">else</span>
|
201
|
-
78: <span class="ruby-identifier">message</span> <span class="ruby-node">"END: #{name} (#{current_timestamp.to_s(36)},#{times.utime.to_s(36)},#{times.stime.to_s(36)})"</span>
|
202
|
-
79: <span class="ruby-keyword kw">end</span>
|
203
|
-
80: <span class="ruby-keyword kw">end</span>
|
204
|
-
</pre>
|
205
|
-
</div>
|
206
|
-
</div>
|
207
|
-
</div>
|
208
|
-
<div class="method">
|
209
|
-
<div class="title">
|
210
|
-
<a name="M000302"></a><b>measure</b>(name, extra_info = nil) {|| ...}
|
211
|
-
</div>
|
212
|
-
<div class="sourcecode">
|
213
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000302_source')" id="l_M000302_source">show source</a> ]</p>
|
214
|
-
<div id="M000302_source" class="dyn-source">
|
215
|
-
<pre>
|
216
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 82</span>
|
217
|
-
82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">measure</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">extra_info</span> = <span class="ruby-keyword kw">nil</span>)
|
218
|
-
83: <span class="ruby-identifier">begin_measure</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">extra_info</span>)
|
219
|
-
84: <span class="ruby-keyword kw">begin</span>
|
220
|
-
85: <span class="ruby-keyword kw">yield</span>
|
221
|
-
86: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span>
|
222
|
-
87: <span class="ruby-identifier">error</span> = <span class="ruby-keyword kw">true</span>
|
223
|
-
88: <span class="ruby-identifier">raise</span>
|
224
|
-
89: <span class="ruby-keyword kw">ensure</span>
|
225
|
-
90: <span class="ruby-identifier">end_measure</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">error</span>)
|
226
|
-
91: <span class="ruby-keyword kw">end</span>
|
227
|
-
92: <span class="ruby-keyword kw">end</span>
|
228
|
-
</pre>
|
229
|
-
</div>
|
230
|
-
</div>
|
231
|
-
</div>
|
232
|
-
<div class="method">
|
233
|
-
<div class="title">
|
234
|
-
<a name="M000303"></a><b>measured_time_points</b>(name, begin_time, end_time, extra_info = nil)
|
235
|
-
</div>
|
236
|
-
<div class="sourcecode">
|
237
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000303_source')" id="l_M000303_source">show source</a> ]</p>
|
238
|
-
<div id="M000303_source" class="dyn-source">
|
239
|
-
<pre>
|
240
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 94</span>
|
241
|
-
94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">measured_time_points</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">begin_time</span>, <span class="ruby-identifier">end_time</span>, <span class="ruby-identifier">extra_info</span> = <span class="ruby-keyword kw">nil</span>)
|
242
|
-
95: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">extra_info</span>
|
243
|
-
96: <span class="ruby-identifier">extra_info_base64</span> = [<span class="ruby-identifier">extra_info</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">"m"</span>)
|
244
|
-
97: <span class="ruby-identifier">extra_info_base64</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-value str">"\n"</span>, <span class="ruby-value str">""</span>)
|
245
|
-
98: <span class="ruby-identifier">extra_info_base64</span>.<span class="ruby-identifier">strip!</span>
|
246
|
-
99: <span class="ruby-keyword kw">else</span>
|
247
|
-
100: <span class="ruby-identifier">extra_info_base64</span> = <span class="ruby-keyword kw">nil</span>
|
248
|
-
101: <span class="ruby-keyword kw">end</span>
|
249
|
-
102: <span class="ruby-identifier">begin_timestamp</span> = <span class="ruby-identifier">begin_time</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">*</span> <span class="ruby-value">1_000_000</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">begin_time</span>.<span class="ruby-identifier">usec</span>
|
250
|
-
103: <span class="ruby-identifier">end_timestamp</span> = <span class="ruby-identifier">end_time</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">*</span> <span class="ruby-value">1_000_000</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">end_time</span>.<span class="ruby-identifier">usec</span>
|
251
|
-
104: <span class="ruby-identifier">message</span> <span class="ruby-node">"BEGIN: #{name} (#{begin_timestamp.to_s(36)}) #{extra_info_base64}"</span>
|
252
|
-
105: <span class="ruby-identifier">message</span> <span class="ruby-node">"END: #{name} (#{end_timestamp.to_s(36)})"</span>
|
253
|
-
106: <span class="ruby-keyword kw">end</span>
|
254
|
-
</pre>
|
255
|
-
</div>
|
256
|
-
</div>
|
257
|
-
</div>
|
258
|
-
<div class="method">
|
259
|
-
<div class="title">
|
260
|
-
<a name="M000299"></a><b>message</b>(text)
|
261
|
-
</div>
|
262
|
-
<div class="sourcecode">
|
263
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000299_source')" id="l_M000299_source">show source</a> ]</p>
|
264
|
-
<div id="M000299_source" class="dyn-source">
|
265
|
-
<pre>
|
266
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 53</span>
|
267
|
-
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span>(<span class="ruby-identifier">text</span>)
|
268
|
-
54: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
269
|
-
55: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">write</span>(<span class="ruby-value str">"log"</span>, <span class="ruby-ivar">@txn_id</span>,
|
270
|
-
56: <span class="ruby-constant">AnalyticsLogger</span>.<span class="ruby-identifier">timestamp_string</span>)
|
271
|
-
57: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">write_scalar</span>(<span class="ruby-identifier">text</span>)
|
272
|
-
58: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@shared_data</span>
|
273
|
-
59: <span class="ruby-keyword kw">end</span>
|
274
|
-
</pre>
|
275
|
-
</div>
|
276
|
-
</div>
|
277
|
-
</div>
|
278
|
-
<div class="method">
|
279
|
-
<div class="title">
|
280
|
-
<a name="M000298"></a><b>null?</b>()
|
281
|
-
</div>
|
282
|
-
<div class="sourcecode">
|
283
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000298_source')" id="l_M000298_source">show source</a> ]</p>
|
284
|
-
<div id="M000298_source" class="dyn-source">
|
285
|
-
<pre>
|
286
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 49</span>
|
287
|
-
49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">null?</span>
|
288
|
-
50: <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@shared_data</span>
|
289
|
-
51: <span class="ruby-keyword kw">end</span>
|
290
|
-
</pre>
|
291
|
-
</div>
|
292
|
-
</div>
|
293
|
-
</div>
|
294
|
-
</div>
|
295
|
-
|
296
|
-
</div>
|
297
|
-
|
298
|
-
</body>
|
299
|
-
</html>
|