/usr/include/paraview/pqMemoryInspectorPanel.h is in paraview-dev 4.0.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __pqMemoryInspectorPanel_h
#define __pqMemoryInspectorPanel_h
#include "pqComponentsModule.h"
#include <QWidget>
#include <QProcess>
#include <QMenu>
#include <map>
using std::map;
#include <string>
using std::string;
#include <vector>
using std::vector;
class pqMemoryInspectorPanelUI;
class HostData;
class RankData;
class QTreeWidgetItem;
class vtkPVSystemConfigInformation;
class pqView;
class PQCOMPONENTS_EXPORT pqMemoryInspectorPanel : public QWidget
{
Q_OBJECT
public:
pqMemoryInspectorPanel(QWidget* parent=0, Qt::WindowFlags f=0);
~pqMemoryInspectorPanel();
// Description:
// Test for successful initialization.
int Initialized(){ return this->ClientHost!=NULL; }
protected:
// Description:
// Update when the panel is made visible.
virtual void showEvent(QShowEvent *event);
protected slots:
// Description:
// Configure the UI based on conneccted servers.
void ServerDisconnected();
void ServerConnected();
// Description:
// The panel will update itself after render events end. Render events are
// used because they occur only after all server side action is complete
// and rendering initself can use significant resources. The update is
// enabled only after pqView::dataUpdatedEvent.
void ConnectToView(pqView *view);
void RenderCompleted();
void EnableUpdate();
// Description:
// Update the UI with values from the server(s).
int Initialize();
// Description:
// Update the UI with the latest values from the server(s).
void Update();
// Description:
// Enable auto update.
void SetAutoUpdate(bool state){ this->AutoUpdate=state; }
// Description:
// enable/disable stack trace.
void EnableStackTraceOnClient(bool enable);
void EnableStackTraceOnServer(bool enable);
void EnableStackTraceOnDataServer(bool enable);
void EnableStackTraceOnRenderServer(bool enable);
// Description:
// run remote command on one of the client or server ranks.
void ExecuteRemoteCommand();
void RemoteCommandFailed(QProcess::ProcessError code);
// Description:
// Display host properties
void ShowHostPropertiesDialog();
// Description:
// Create a context menu for the config view.
void ConfigViewContextMenu(const QPoint &pos);
// Description:
// Collapse or expand the view for easier navigation
// when larger jobs are in play.
void ShowOnlyNodes();
void ShowAllRanks();
private:
void ClearClient();
void ClearServers();
void ClearServer(
map<string,HostData *> &hosts,
vector<RankData *> &ranks);
void UpdateRanks();
void UpdateHosts();
void UpdateHosts(map<string,HostData*> &hosts);
void InitializeServerGroup(
long long clientPid,
vtkPVSystemConfigInformation *configs,
int validProcessType,
QTreeWidgetItem *group,
string groupName,
map<string,HostData*> &hosts,
vector<RankData*> &ranks,
int &systemType);
void EnableStackTrace(bool enable,int group);
void AddEnableStackTraceMenuAction(int serverType, QMenu &context);
QWidget *NewGroupWidget(string name, string icon);
private:
pqMemoryInspectorPanelUI *Ui;
int ClientOnly;
HostData *ClientHost;
int ClientSystemType;
bool StackTraceOnClient;
map<string,HostData *> ServerHosts;
vector<RankData *> ServerRanks;
int ServerSystemType;
bool StackTraceOnServer;
map<string,HostData *> DataServerHosts;
vector<RankData *> DataServerRanks;
int DataServerSystemType;
bool StackTraceOnDataServer;
map<string,HostData *> RenderServerHosts;
vector<RankData *> RenderServerRanks;
int RenderServerSystemType;
bool StackTraceOnRenderServer;
int UpdateEnabled;
int PendingUpdate;
bool AutoUpdate;
};
#endif
|