You can use strace on a specific pid to figure out what a specific process is doing, e.g.:
strace -fp <pid>
You might see something like:
select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)
| require 'active_record/base' | |
| require 'active_record/connection_adapters/abstract_adapter' | |
| require 'active_record/connection_adapters/postgresql_adapter' | |
| module ActiveRecord | |
| module ConnectionAdapters | |
| class PostgreSQLAdapter < AbstractAdapter | |
| def next_sequence_value(sequence_name) | |
| Integer(select_value("SELECT NEXTVAL('#{sequence_name}')")) | |
| end |
| default_exposure do |name| | |
| collection = name.to_s.pluralize | |
| if respond_to?(collection) && collection != name.to_s && send(collection).respond_to?(:scoped) | |
| proxy = send(collection) | |
| else | |
| proxy = name.to_s.classify.constantize | |
| end | |
| instance_variable_set("@#{name}") = if id = params["#{name}_id"] || params[:id] | |
| proxy.find(id).tap do |r| |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nginx | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the nginx web server | |
| # Description: starts nginx using start-stop-daemon |
| require 'active_record/base' | |
| require 'active_record/connection_adapters/abstract_adapter' | |
| require 'active_record/connection_adapters/postgresql_adapter' | |
| module ActiveRecord | |
| module ConnectionAdapters | |
| class PostgreSQLAdapter < AbstractAdapter | |
| def next_sequence_value(sequence_name) | |
| Integer(select_value("SELECT NEXTVAL('#{sequence_name}')")) | |
| end |
| ⨀_⨀ | |
| ⨂_⨂ | |
| (/◔ ◡ ◔)/ | |
| °ﺑ° | |
| (¬_¬) | |
| (´・ω・`) | |
| (ʘ_ʘ) | |
| (ʘ‿ʘ) | |
| (๏̯͡๏ ) | |
| (◕_◕) |
| class SectionsController < ApplicationController | |
| load_and_authorize_resource | |
| expose(:section) | |
| expose(:sections) { search.paginate(:page => params[:page]) } | |
| expose(:search) { Section.search(params[:search]) } | |
| def create | |
| if section.save |
| body { | |
| background-color: #4B7399; | |
| font-family: Verdana, Helvetica, Arial; | |
| font-size: 14px; | |
| } | |
| a img { | |
| border: none; | |
| } |
| export ANSI_NORMAL="\[\e[0;37m\]" | |
| export ANSI_YELLOW="\[\e[1;33m\]" | |
| export ANSI_RESET="\[\e[0m\]" | |
| export ANSI_CYAN="\[\e[0;36m\]" | |
| export ANSI_BLUE="\[\e[0;34m\]" | |
| export PS1="($ANSI_CYAN\u$ANSI_YELLOW@$ANSI_CYAN\h$ANSI_RESET):\w\$ " |